fix: wrap all async controller with error handler

* add validations to newCommand
This commit is contained in:
wancat authored and Lin, Hung-Shin committed 2023-11-14 10:45:24 +08:00
1 parent 1af85651b8
commit c2dac8d385
13 files changed
+120 -120

No files matched your search

+1 -1
View File
@@ -23,7 +23,7 @@ class SocketWrapper {
this.socket.once('terminal', () => {
resolve()
})
this.socket.once('connect_error', reject)
this.socket.on('connect_error', reject)
this.bindListeners()
})
}