Skip to content

Commit 61e3808

Browse files
committed
Improve connect problem message
1 parent 271ec8c commit 61e3808

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jdbc/src/main/java/tech/ydb/jdbc/context/YdbContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public static YdbContext createContext(YdbConfig config) throws SQLException {
132132

133133
return new YdbContext(config, grpcTransport, tableClient.build(), autoResize);
134134
} catch (Exception ex) {
135-
throw new YdbConfigurationException("Cannot connect to YDB", ex);
135+
throw new YdbConfigurationException("Cannot connect to YDB: " + ex.getMessage(), ex);
136136
}
137137
}
138138

0 commit comments

Comments
 (0)