Skip to content

Commit 8f7bc67

Browse files
committed
fix to preserve error message
1 parent fb1f374 commit 8f7bc67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clickhouse-http-client/src/main/java/com/clickhouse/client/http/ApacheHttpConnectionImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ protected ClickHouseHttpResponse post(ClickHouseConfig config, String sql, Click
254254
try {
255255
response = client.execute(post);
256256
} catch (IOException e) {
257-
throw new ConnectException(ClickHouseUtils.format("HTTP request failed: %s", post));
257+
throw new ConnectException(ClickHouseUtils.format("HTTP request failed: %s", e.getMessage()));
258258
}
259259

260260
checkResponse(config, response);

0 commit comments

Comments
 (0)