File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -300,7 +300,17 @@ export async function assertPool(
300
300
pgPool = _rawOptions . pgPool ;
301
301
if ( pgPool . listeners ( "error" ) . length === 0 ) {
302
302
console . warn (
303
- `Your pool doesn't have error handlers! See: https://err.red/wpeh` ,
303
+ `Your pool doesn't have error handlers! See: https://err.red/wpeh?v=${ encodeURIComponent (
304
+ version ,
305
+ ) } `,
306
+ ) ;
307
+ installErrorHandlers ( compiledSharedOptions , releasers , pgPool ) ;
308
+ }
309
+ if ( pgPool . listeners ( "connect" ) . length === 0 ) {
310
+ console . warn (
311
+ `Your pool doesn't have all of the error handlers! See: https://err.red/wpeh?v=${ encodeURIComponent (
312
+ version ,
313
+ ) } &method=connect`,
304
314
) ;
305
315
installErrorHandlers ( compiledSharedOptions , releasers , pgPool ) ;
306
316
}
You can’t perform that action at this time.
0 commit comments