I have a subflow and in there is this bit of code:
if (ICDID != device)
{
node.warn("Node Configuration not set");
node.error("Node Configuration not set", msg)
// fa-eye-slash
return;
}
Which is nice but I now realise I need more information.
It would be nice to know those two things too: ICDID and device.
Short of sticking them on the end of the node.error line: is there another way so I can sort of structure the message?
Then I can see them as discreet parts and not just appended to the message.
For subflows I often have a separate debug or error output on the subflow that I send messages containing this sort of information.
Also remember you can trigger an error from a function node and catch that in a Catch node.