smchamberlin / node-red-contrib-ibm-db2

Node-RED nodes to work with a Db2 LUW database. Works with "Db2 on Cloud" and "Db2 Warehouse on Cloud" services as well as standalone installation of Db2 LUW.
4 stars 14 forks source link

DashDB out node does not clear previous error message #13

Closed tonykambo closed 7 years ago

tonykambo commented 7 years ago

If I have two dashDB out nodes in a flow and the first results in an error the msg.error message is passed into the second dashDB out node and is not cleared. The result is that after the second dashDB out node completes without an error the msg.error is still populated the with result from the first.

For example:

http in->function->dashdb out 1->function->dashdb out 2->function->http response

An error on dashdb out 1 will flow into dashdb out 2 and even though dashdb out 2's result is not an error it will still have an error

smchamberlin commented 7 years ago

Fixed in latest push