3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00

Don't post server errors publically

This commit is contained in:
Dragory 2019-07-22 01:11:36 +03:00
parent 541856d3b5
commit 283041cd52

View file

@ -31,7 +31,8 @@ connect().then(() => {
// Error response
app.use((err, req, res, next) => {
error(res, err.message, err.status || 500);
console.error(err);
error(res, "Server error", err.status || 500);
});
// 404 response