Skip to content

Commit c934e33

Browse files
authored
Merge pull request #451 from halait/main
Return after fail to connect in Pool, else causes unhanded error
2 parents a1cb7a5 + dd12184 commit c934e33

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/Pool.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ class Pool {
294294
this.connect((error, connection) => {
295295
if (error) {
296296
reject(error);
297+
return;
297298
}
298299

299300
connection.query(sql, parameters, options, (error, result) => {

0 commit comments

Comments
 (0)