Never ever discard Errors by catching and ignoring Throwable
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1042217 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
00751cf322
commit
e6af69f2e4
|
@ -828,7 +828,7 @@ public abstract class AbstractHttpClient implements HttpClient {
|
|||
if (entity != null) {
|
||||
try {
|
||||
entity.consumeContent();
|
||||
} catch (Throwable t2) {
|
||||
} catch (Exception t2) {
|
||||
// Log this exception. The original exception is more
|
||||
// important and will be thrown to the caller.
|
||||
this.log.warn("Error consuming content after an exception.", t2);
|
||||
|
|
Loading…
Reference in New Issue