enhanced debugging

This commit is contained in:
Michael Peter Christen 2014-06-26 12:57:01 +02:00
parent b893c42a0f
commit 49886fab08
2 changed files with 3 additions and 1 deletions

View File

@ -279,7 +279,7 @@ public class TimeoutRequest<E> {
} }
}).call(timeout).longValue();
} catch (final ExecutionException e) {
throw new IOException(e.getMessage());
throw new IOException(file.toString() + ":" + e.getMessage());
}
}

View File

@ -348,6 +348,8 @@ public class HostBalancer implements Balancer {
return request;
} catch (ConcurrentModificationException e) {
continue tryagain;
} catch (IOException e) {
throw e;
} catch (Throwable e) {
throw new IOException(e.getMessage());
}