Ensure error messages are toStringed

This commit is contained in:
Nick O'Leary
2015-06-16 16:09:53 +01:00
parent 48df31d7b7
commit 9ca102cf81
8 changed files with 23 additions and 23 deletions

View File

@@ -84,7 +84,7 @@ module.exports = function(RED) {
res.send(200);
} catch(err) {
res.send(500);
node.error(RED._("inject.failed",{error:err}));
node.error(RED._("inject.failed",{error:err.toString()}));
}
} else {
res.send(404);