on error, log it

This commit is contained in:
2022-04-26 16:30:50 +02:00
committed by Stepan Usatiuk
parent 6e716d7b01
commit da0bf8f372

View File

@@ -90,6 +90,7 @@ if (config.env === EnvType.development) {
}
app.on("error", (err, ctx) => {
console.log(err);
ctx.body = {
error: err.message,
data: false,