bug validaz
This commit is contained in:
+1
-1
@@ -211,7 +211,7 @@ module.exports = function (RED) {
|
|||||||
try {
|
try {
|
||||||
read_msg.assert(msg);
|
read_msg.assert(msg);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
let errors = write_msg.validate(msg);
|
let errors = read_msg.validate(msg);
|
||||||
node.error("Msg non valido: " + errors.map(x => x.path + ": " + x.error).join("\n"));
|
node.error("Msg non valido: " + errors.map(x => x.path + ": " + x.error).join("\n"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user