@bkmj/node-red-contrib-odbcmj 1.6.2 → 1.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/odbc.js +4 -1
- package/package.json +1 -1
package/odbc.js
CHANGED
|
@@ -215,7 +215,10 @@ module.exports = function(RED) {
|
|
|
215
215
|
if(typeof error == 'object'){
|
|
216
216
|
// Enhance the error object with query information
|
|
217
217
|
if(this?.queryString) error.query = this.queryString;
|
|
218
|
-
if(this?.parameters) error.params = msg.parameters;
|
|
218
|
+
if(this?.parameters) error.params = msg.parameters;
|
|
219
|
+
if(error?.message){
|
|
220
|
+
error.message += error?.query ? `\nquery: ${error.query}`: '' + error?.params ? `\nparams: ${error.params}` : ''
|
|
221
|
+
}
|
|
219
222
|
}
|
|
220
223
|
else if (typeof error == 'string'){
|
|
221
224
|
error += error?.query ? `\nquery: ${error.query}`: '' + error?.params ? `\nparams: ${error.params}` : ''
|