Skip to content

Commit 8813602

Browse files
committed
Append system error message to wallet error
1 parent 430851c commit 8813602

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

doc/src/release_notes.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ Thin Mode Changes
5656
#) Error ``NJS-125`` is now raised when an empty connect string is provided
5757
for creating pools.
5858

59+
#) Provide additional error details when an invalid wallet is used.
60+
5961
Thick Mode changes
6062
++++++++++++++++++
6163

lib/errors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ messages.set(ERR_CONNECTION_INCOMPLETE, // NJS-503
475475
messages.set(ERR_PROXY_CONNECTION_FAILURE, // NJS-504
476476
'connection establishment through a web proxy at host %s port %d failed. (CONNECTION_ID=%s)\n%s');
477477
messages.set(ERR_TLS_INIT_FAILURE, // NJS-505
478-
'unable to initiate TLS connection. Please check if wallet credentials are valid');
478+
'unable to initiate TLS connection. Please check if wallet credentials are valid\n%s');
479479
messages.set(ERR_TLS_AUTH_FAILURE, // NJS-506
480480
'connection to host %s port %d encountered TLS handshake failure. (CONNECTION_ID=%s)\n%s');
481481
messages.set(ERR_TLS_DNMATCH_FAILURE, // NJS-507

lib/thin/sqlnet/ntTcp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ class NTTCP {
234234
ca: this.atts.wallet,
235235
});
236236
} catch (err) {
237-
errors.throwErr(errors.ERR_TLS_INIT_FAILURE);
237+
errors.throwErr(errors.ERR_TLS_INIT_FAILURE, err.message);
238238
}
239239
await this.tlsConnect(secureContext, this.stream);
240240
}

0 commit comments

Comments
 (0)