From 5aa31270de2ac2abe3a73b790b9619f1f0dc51e1 Mon Sep 17 00:00:00 2001 From: Ambrose Chua Date: Sun, 11 Mar 2018 09:24:41 +0900 Subject: [PATCH] Show error thrown when command fails --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 2950ca0..74ae314 100755 --- a/index.js +++ b/index.js @@ -473,7 +473,7 @@ if (shellable) { timeout: 60 * 1000, }, (err, stdout, stderr) => { if (err) { - req.flash("error", "Unable to execute command " + cmd); + req.flash("error", "Unable to execute command: " + err); } res.render("cmd", flashify(req, { path: res.filename,