Error conveyance
Issue #2
new
Currently the iToolkit callback function only operates on a single result parameter and doesn't also include an error parameter. Errors could result from the DB2 connection.
Would be good to add this so errors can be conveyed.
Comments (2)
-
Account Deactivated -
migrated issue to: https://github.com/IBM/nodejs-itoolkit/issues/2
- Log in to comment
Yes, this is a design issue. We should follow the Node.js callback style -- https://nodejs.org/dist/latest-v4.x/docs/api/errors.html#errors_node_js_style_callbacks But the new error parameter is the first parameter of functions, which may break current user code. Maybe we'd better make the changes in next majoy version upgrade.