mirror of
https://github.com/usatiuk/photos.git
synced 2025-10-28 15:27:49 +01:00
on error, log it
This commit is contained in:
@@ -90,6 +90,7 @@ if (config.env === EnvType.development) {
|
||||
}
|
||||
|
||||
app.on("error", (err, ctx) => {
|
||||
console.log(err);
|
||||
ctx.body = {
|
||||
error: err.message,
|
||||
data: false,
|
||||
|
||||
Reference in New Issue
Block a user