Show error thrown when command fails
parent
14b56bd18e
commit
5aa31270de
2
index.js
2
index.js
|
@ -473,7 +473,7 @@ if (shellable) {
|
||||||
timeout: 60 * 1000,
|
timeout: 60 * 1000,
|
||||||
}, (err, stdout, stderr) => {
|
}, (err, stdout, stderr) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
req.flash("error", "Unable to execute command " + cmd);
|
req.flash("error", "Unable to execute command: " + err);
|
||||||
}
|
}
|
||||||
res.render("cmd", flashify(req, {
|
res.render("cmd", flashify(req, {
|
||||||
path: res.filename,
|
path: res.filename,
|
||||||
|
|
Loading…
Reference in New Issue