diff --git a/routes/ssh.js b/routes/ssh.js index c253cd8..46aaeb0 100644 --- a/routes/ssh.js +++ b/routes/ssh.js @@ -20,7 +20,7 @@ function userReq(req, res) { if (p.host) q.filter("host", p.host); if (p.type) q.filter("type", p.type); q.list((e, d) => { - if (e) return res.status(500).send("ERROR"); + if (e) return res.status(500).render('error', {message: e.message, error: e}); res.type("text/plain"); res.send(d.reduce(toList)); })