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:
Oleg Kalnichevski 2010-12-04 17:58:08 +00:00
parent 00751cf322
commit e6af69f2e4
1 changed files with 1 additions and 1 deletions

View File

@ -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);