Skip to content

Commit b52d926

Browse files
committed
Better exception message
1 parent 0a7f19e commit b52d926

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http4/Http4FileSystem.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,7 @@ protected FileObject createFile(final AbstractFileName name) throws Exception {
9090
@Override
9191
protected void doCloseCommunicationLink() {
9292
if (httpClient instanceof Closeable) {
93-
// TODO "Error closing HttpClient" Commons IO
94-
// Uncheck.run(() -> ((Closeable) httpClient).close(), () -> "Error closing HttpClient");
95-
Uncheck.run(() -> ((Closeable) httpClient).close());
93+
Uncheck.run(() -> ((Closeable) httpClient).close(), () -> "Error closing HttpClient");
9694
}
9795
}
9896

commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http5/Http5FileSystem.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,7 @@ protected FileObject createFile(final AbstractFileName name) throws Exception {
8888
@Override
8989
protected void doCloseCommunicationLink() {
9090
if (httpClient instanceof Closeable) {
91-
// TODO "Error closing HttpClient" Commons IO
92-
// Uncheck.run(() -> ((Closeable) httpClient).close(), () -> "Error closing HttpClient");
93-
Uncheck.run(() -> ((Closeable) httpClient).close());
91+
Uncheck.run(() -> ((Closeable) httpClient).close(), () -> "Error closing HttpClient");
9492
}
9593
}
9694

0 commit comments

Comments
 (0)