mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
parent
781fa4634b
commit
14882bda78
@ -123,7 +123,7 @@ module.exports = function(RED) {
|
|||||||
try{
|
try{
|
||||||
value = RED.util.evaluateJSONataExpression(rule.to,msg);
|
value = RED.util.evaluateJSONataExpression(rule.to,msg);
|
||||||
} catch(err) {
|
} catch(err) {
|
||||||
node.error(RED._("change.errors.invalid-expr",{error:err.message}));
|
node.error(RED._("change.errors.invalid-expr",{error:err.message}),msg);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -150,11 +150,11 @@ module.exports = function(RED) {
|
|||||||
fromRE = new RegExp(fromRE, "g");
|
fromRE = new RegExp(fromRE, "g");
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
valid = false;
|
valid = false;
|
||||||
node.error(RED._("change.errors.invalid-from",{error:e.message}));
|
node.error(RED._("change.errors.invalid-from",{error:e.message}),msg);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
node.error(RED._("change.errors.invalid-from",{error:"unsupported type: "+(typeof fromValue)}));
|
node.error(RED._("change.errors.invalid-from",{error:"unsupported type: "+(typeof fromValue)}),msg);
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user