Permalink
Browse files

Do not wrap unnecessarily loader IOExceptions in IOExceptions

  • Loading branch information...
luccioman committed Jun 29, 2017
1 parent 433bdb7 commit 0b75e92ac275c1aeef74ef87603d4b4599686910
Showing with 3 additions and 0 deletions.
  1. +3 −0 source/net/yacy/repository/LoaderDispatcher.java
@@ -180,6 +180,9 @@ public Response load(final Request request, final CacheStrategy cacheStrategy, f
final Response response = loadInternal(request, cacheStrategy, maxFileSize, blacklistType, agent);
// finally block cleans up loaderSteering and semaphore
return response;
} catch (final IOException e) {
/* Do not wrap an IOException in an unnecessary supplementary IOException */
throw e;
} catch (final Throwable e) {
throw new IOException(e);
} finally {

0 comments on commit 0b75e92

Please sign in to comment.