We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ae5048 commit 12a9351Copy full SHA for 12a9351
lib/oracledb.js
@@ -680,10 +680,11 @@ function initOracleClient(arg1) {
680
try {
681
oracledbCLib.initOracleClient(options, impl, settings);
682
} catch (err) {
683
- if (err.message.match(/DPI-1047/)) {
684
- err.message += "\n" + nodbUtil.getInstallHelp();
+ const newErr = errors.transformErr(err);
+ if (newErr.code === "DPI-1047") {
685
+ newErr.message += "\n" + nodbUtil.getInstallHelp();
686
}
- throw err;
687
+ throw newErr;
688
689
_initOracleClientArgs = arg1 || {};
690
} else if (!util.isDeepStrictEqual(_initOracleClientArgs, options)) {
0 commit comments