Skip to content

Commit 12c4d02

Browse files
committed
Log exception cause.
1 parent 510c9c1 commit 12c4d02

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

core/src/main/java/ch/cyberduck/core/proxy/ProxySocketFactory.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,10 @@ public Socket createSocket() throws IOException {
108108
}
109109

110110
private IOException failure(final String target, final IllegalArgumentException e) {
111-
return new ConnectException(String.format("Unsupported proxy type for target %s", target));
111+
log.error("Failed to create socket for target {}", target, e);
112+
final ConnectException exception = new ConnectException(String.format("Unsupported proxy type for target %s", target));
113+
exception.initCause(e);
114+
return exception;
112115
}
113116

114117
@Override

0 commit comments

Comments
 (0)