Skip to content

Commit bedf901

Browse files
committed
Improve error messages
1 parent 8c86df4 commit bedf901

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/errors.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,9 +399,9 @@ messages.set(ERR_EXEC_MODE_ONLY_FOR_DML, // NJS-095
399399
messages.set(ERR_INVALID_BIND_NAME, // NJS-097
400400
'no bind placeholder named ":%s" was found in the statement text');
401401
messages.set(ERR_WRONG_NUMBER_OF_BINDS, // NJS-098
402-
'%s bind placeholders were used in the SQL statement but %s bind values were provided');
402+
'%d bind placeholders were used in the SQL statement but %d bind values were provided');
403403
messages.set(ERR_BUFFER_LENGTH_INSUFFICIENT, // NJS-099
404-
'internal error: buffer of length %s insufficient to hold %s bytes');
404+
'internal error: buffer of length %d insufficient to hold %d bytes');
405405
messages.set(ERR_NCHAR_CS_NOT_SUPPORTED, // NJS-100
406406
'national character set id %d is not supported by node-oracledb in Thin mode');
407407
messages.set(ERR_MISSING_CREDENTIALS, // NJS-101

0 commit comments

Comments
 (0)