mssql 12.7.13 → 12.7.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -421,7 +421,12 @@ class ConnectionPool extends EventEmitter {
|
|
|
421
421
|
return shared.Promise.reject(new ConnectionError('Connection is closing', 'ENOTOPEN'))
|
|
422
422
|
}
|
|
423
423
|
|
|
424
|
-
return this.pool.acquire().promise
|
|
424
|
+
return this.pool.acquire().promise.catch(err => {
|
|
425
|
+
if (err instanceof tarn.TimeoutError) {
|
|
426
|
+
err.message = `Failed to acquire a connection from the pool: ${err.message}`
|
|
427
|
+
}
|
|
428
|
+
throw err
|
|
429
|
+
})
|
|
425
430
|
}
|
|
426
431
|
|
|
427
432
|
/**
|