mirror of
https://github.com/ragestudio/linebridge.git
synced 2025-06-09 18:44:17 +00:00
parse error
This commit is contained in:
parent
56d9efb257
commit
259138947f
@ -136,11 +136,14 @@ class Server {
|
|||||||
socket.on(on, async (...args) => {
|
socket.on(on, async (...args) => {
|
||||||
try {
|
try {
|
||||||
await dispatch(socket, ...args).catch((error) => {
|
await dispatch(socket, ...args).catch((error) => {
|
||||||
console.error(error)
|
socket.err({
|
||||||
socket.err(error)
|
message: error.message,
|
||||||
|
})
|
||||||
})
|
})
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
socket.err(error)
|
socket.err({
|
||||||
|
message: error.message,
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user