Skip to content

Commit dd12184

Browse files
committed
Return after fail to connect in Pool, else causes unhanded error
Signed-off-by: halait <40286718+halait@users.noreply.github.com>
1 parent f37f4c2 commit dd12184

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)