mirror of
https://github.com/ragestudio/linebridge.git
synced 2025-06-09 10:34:17 +00:00
output endpoint error route
& index
This commit is contained in:
parent
07eb3fb550
commit
30bcd7dbec
@ -257,13 +257,12 @@ class Server {
|
||||
|
||||
// load and set endpoints
|
||||
if (Array.isArray(this.params.endpoints)) {
|
||||
this.params.endpoints.forEach((endpoint) => {
|
||||
this.params.endpoints.forEach((endpoint, index) => {
|
||||
try {
|
||||
// append to server
|
||||
this.register(endpoint)
|
||||
} catch (error) {
|
||||
console.error(error)
|
||||
console.error(`🆘 Failed to load endpoint > ${error.message}`)
|
||||
console.error(`🆘 [${endpoint.route}[${index}]] Failed to load endpoint > ${error.message}`)
|
||||
process.runtime.logger.dump(error)
|
||||
}
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user