kopia lustrzana https://github.com/OpenDroneMap/NodeODM
Catch-all error handler
rodzic
af92c38fa1
commit
b9b1225158
5
index.js
5
index.js
|
@ -714,6 +714,11 @@ app.get('/info', authCheck, (req, res) => {
|
|||
});
|
||||
});
|
||||
|
||||
app.use((err, req, res, next) => {
|
||||
logger.error(err.stack);
|
||||
res.json({error: err.message});
|
||||
});
|
||||
|
||||
let gracefulShutdown = done => {
|
||||
async.series([
|
||||
cb => taskManager.dumpTaskList(cb),
|
||||
|
|
Ładowanie…
Reference in New Issue