mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-14 01:37:48 -05:00
Update index.js
This commit is contained in:
@@ -194,8 +194,7 @@ app.get('/clients', get_clients);
|
|||||||
app.get('/:shortName/clients', get_clients);
|
app.get('/:shortName/clients', get_clients);
|
||||||
app.use(function (err, req, res, next) {
|
app.use(function (err, req, res, next) {
|
||||||
|
|
||||||
res.status(err.status || 500);
|
console.log("Error: " + err);
|
||||||
res.send(err.message);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user