mirror of
https://github.com/ragestudio/linebridge.git
synced 2025-07-11 02:04:16 +00:00
fix outputServerError
This commit is contained in:
parent
0142d8d50c
commit
f9edc5e7d0
@ -171,6 +171,7 @@ class Server {
|
|||||||
this.registerWSEndpoint(endpoint)
|
this.registerWSEndpoint(endpoint)
|
||||||
})
|
})
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
if (!global.silentOutputServerErrors) {
|
||||||
outputServerError({
|
outputServerError({
|
||||||
message: "Controller initialization failed:",
|
message: "Controller initialization failed:",
|
||||||
description: error.stack,
|
description: error.stack,
|
||||||
@ -179,6 +180,7 @@ class Server {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
registerHTTPEndpoint = (endpoint, ...execs) => {
|
registerHTTPEndpoint = (endpoint, ...execs) => {
|
||||||
// check and fix method
|
// check and fix method
|
||||||
@ -298,7 +300,7 @@ class Server {
|
|||||||
return this.params.onRouteError(req, res, error)
|
return this.params.onRouteError(req, res, error)
|
||||||
} else {
|
} else {
|
||||||
if (!global.silentOutputServerErrors) {
|
if (!global.silentOutputServerErrors) {
|
||||||
this.outputServerError({
|
outputServerError({
|
||||||
message: "Unhandled route error:",
|
message: "Unhandled route error:",
|
||||||
description: error.stack,
|
description: error.stack,
|
||||||
ref: [endpoint.method, endpoint.route].join("|"),
|
ref: [endpoint.method, endpoint.route].join("|"),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user