Skip to content

Commit 3a250e5

Browse files
authored
Merge pull request #1359 from outframe-development/master
fix uncatchable exception thrown issue
2 parents f21772f + d115a52 commit 3a250e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/pool.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ class Pool extends EventEmitter {
174174
});
175175
} catch (e) {
176176
conn.release();
177-
throw e;
177+
return cb(e);
178178
}
179179
});
180180
}

0 commit comments

Comments
 (0)