mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 07:07:43 +01:00
Remove printStacktrace if error at feed provider occurs, throw error instead
This commit is contained in:
parent
c201727548
commit
f4826a110f
1 changed files with 4 additions and 6 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue