From dd12184cc7fc5c85f1d82f0a758326f07ff23fdf Mon Sep 17 00:00:00 2001 From: halait <40286718+halait@users.noreply.github.com> Date: Sat, 7 Feb 2026 12:33:24 -0500 Subject: [PATCH] Return after fail to connect in Pool, else causes unhanded error Signed-off-by: halait <40286718+halait@users.noreply.github.com> --- lib/Pool.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Pool.js b/lib/Pool.js index f59dccee..b9e125ff 100644 --- a/lib/Pool.js +++ b/lib/Pool.js @@ -294,6 +294,7 @@ class Pool { this.connect((error, connection) => { if (error) { reject(error); + return; } connection.query(sql, parameters, options, (error, result) => {