mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
add util.inspect data to 'type not printable'. Add test to cover these lines (no existing test).
This commit is contained in:
@@ -755,7 +755,7 @@ function encodeObject(msg,opts) {
|
||||
}," ");
|
||||
} else {
|
||||
try { msg.msg = msg.msg.toString(); }
|
||||
catch(e) { msg.msg = "[Type not printable]"; }
|
||||
catch(e) { msg.msg = "[Type not printable]" + util.inspect(msg.msg); }
|
||||
}
|
||||
}
|
||||
} else if (msgType === "function") {
|
||||
|
Reference in New Issue
Block a user