mirror of
https://github.com/ragestudio/linebridge.git
synced 2025-06-09 10:34:17 +00:00
fix outputServerError
This commit is contained in:
parent
0142d8d50c
commit
f9edc5e7d0
@ -171,11 +171,13 @@ class Server {
|
||||
this.registerWSEndpoint(endpoint)
|
||||
})
|
||||
} catch (error) {
|
||||
outputServerError({
|
||||
message: "Controller initialization failed:",
|
||||
description: error.stack,
|
||||
ref: controller.refName ?? controller.name,
|
||||
})
|
||||
if (!global.silentOutputServerErrors) {
|
||||
outputServerError({
|
||||
message: "Controller initialization failed:",
|
||||
description: error.stack,
|
||||
ref: controller.refName ?? controller.name,
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -298,7 +300,7 @@ class Server {
|
||||
return this.params.onRouteError(req, res, error)
|
||||
} else {
|
||||
if (!global.silentOutputServerErrors) {
|
||||
this.outputServerError({
|
||||
outputServerError({
|
||||
message: "Unhandled route error:",
|
||||
description: error.stack,
|
||||
ref: [endpoint.method, endpoint.route].join("|"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user