mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Ensure errors in node.receive are handled
This commit is contained in:
@@ -193,7 +193,11 @@ Node.prototype.receive = function(msg) {
|
||||
msg._msgid = constructUniqueIdentifier();
|
||||
}
|
||||
this.metric("receive",msg);
|
||||
this.emit("input", msg);
|
||||
try {
|
||||
this.emit("input", msg);
|
||||
} catch(err) {
|
||||
this.error(err,msg);
|
||||
}
|
||||
};
|
||||
|
||||
function log_helper(self, level, msg) {
|
||||
|
Reference in New Issue
Block a user