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