master
Pietro Brenna 2021-11-24 10:59:37 +01:00
parent 125f856eca
commit 73d8fa11e9
1 changed files with 2 additions and 2 deletions

View File

@ -185,7 +185,7 @@ module.exports = function (RED) {
write_msg.assert(msg);
} catch (e) {
let errors = write_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.message).join("\n"));
return;
}
s7node_from_plc(msg.plc).then(s7conn => {
@ -212,7 +212,7 @@ module.exports = function (RED) {
read_msg.assert(msg);
} catch (e) {
let errors = read_msg.validate(msg);
node.error("Msg " + JSON.stringify(msg) + " non valido: " + errors.map(x => x.path + ": " + x.error).join("\n"));
node.error("Msg " + JSON.stringify(msg) + " non valido: " + errors.map(x => x.path + ": " + x.message).join("\n"));
return;
}
s7node_from_plc(msg.plc).then(s7conn => {