diff --git a/route/api/modbus.js b/route/api/modbus.js index 92834ae..aab8360 100644 --- a/route/api/modbus.js +++ b/route/api/modbus.js @@ -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();