mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
add more error info
This commit is contained in:
@@ -1117,7 +1117,11 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
|
||||
empty.signal(); // send signal to CreateThread create connection
|
||||
|
||||
if (estimate <= 0) {
|
||||
throw new GetConnectionTimeoutException();
|
||||
if (this.createError == null) {
|
||||
throw new GetConnectionTimeoutException(createError);
|
||||
} else {
|
||||
throw new GetConnectionTimeoutException();
|
||||
}
|
||||
}
|
||||
|
||||
notEmptyWaitThreadCount++;
|
||||
|
||||
Reference in New Issue
Block a user