add stderr msg to response
This commit is contained in:
parent
c990935194
commit
4ae177e455
@ -597,7 +597,7 @@ router
|
|||||||
record: []
|
record: []
|
||||||
};
|
};
|
||||||
exec(cmd, (err, stdout, stderr) => {
|
exec(cmd, (err, stdout, stderr) => {
|
||||||
let msg = err ? err.toString() : stdout;
|
let msg = err ? err.toString() : `${stdout}${stderr}`;
|
||||||
res.api_res.record.push({msg});
|
res.api_res.record.push({msg});
|
||||||
|
|
||||||
n();
|
n();
|
||||||
|
Loading…
Reference in New Issue
Block a user