Skip to content

Commit 65aff58

Browse files
author
T. Ismael Verdugo
committed
feat: add missing exception
1 parent 561f105 commit 65aff58

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/cryptomarket/sdk/rest/HttpClientImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@ private String makeRequest(HttpUriRequest request) throws CryptomarketSDKExcepti
282282
try {
283283
response.close();
284284
} catch (IOException e) {
285+
throw new CryptomarketSDKException("unable to close api response. " + e.getMessage(), e);
285286
}
286287
if (isSuccessful)
287288
return responseBody;

0 commit comments

Comments
 (0)