Skip to content

Commit b163c09

Browse files
gavinaikendhensby
authored andcommitted
fix: instantiate ConnectionError with appropriate args
1 parent 42798aa commit b163c09

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/msnodesqlv8/connection-pool.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class ConnectionPool extends BaseConnectionPool {
4343

4444
msnodesql.open(cfg, (err, tds) => {
4545
if (err) {
46-
err = new ConnectionError(err)
46+
err = new ConnectionError(err.message, err.code)
4747
return reject(err)
4848
}
4949

0 commit comments

Comments
 (0)