fix datasource bug

This commit is contained in:
kiki
2013-11-26 10:28:10 +08:00
parent 95b7631c03
commit dee930814f
2 changed files with 2 additions and 2 deletions
@@ -1065,7 +1065,7 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
String errorMessage = buf.toString();
if (this.createError == null) {
if (this.createError != null) {
throw new GetConnectionTimeoutException(errorMessage, createError);
} else {
throw new GetConnectionTimeoutException(errorMessage);