Spaces:
Sleeping
Sleeping
Change result
Browse files- app/index.js +1 -0
app/index.js
CHANGED
@@ -62,6 +62,7 @@ app.get('/', async (req, res) => {
|
|
62 |
})
|
63 |
|
64 |
app.use(function(err, req, res, next) {
|
|
|
65 |
console.error(err.stack);
|
66 |
res.json({error:'Server error, admin must check logs',status:res.status})
|
67 |
});
|
|
|
62 |
})
|
63 |
|
64 |
app.use(function(err, req, res, next) {
|
65 |
+
console.log(err);
|
66 |
console.error(err.stack);
|
67 |
res.json({error:'Server error, admin must check logs',status:res.status})
|
68 |
});
|