Remove printStacktrace if error at feed provider occurs, throw error instead

This commit is contained in:
Manfred Karrer 2016-08-25 12:28:46 +02:00
parent c201727548
commit f4826a110f

View file

@ -89,9 +89,8 @@ public class HttpClient {
throw new HttpException(error);
}
} catch (Throwable t) {
log.error(t.getMessage());
t.printStackTrace();
return "";
log.debug("Error at requestWithGETNoProxy: " + t.getMessage());
throw new IOException(t);
} finally {
if (connection != null)
connection.getInputStream().close();
@ -139,9 +138,8 @@ public class HttpClient {
response.close();
}
} catch (Throwable t) {
log.error(t.getMessage());
t.printStackTrace();
return "";
log.debug("Error at requestWithGETProxy: " + t.getMessage());
throw new IOException(t);
} finally {
httpclient.close();
}