Skip to content

Commit 08d312f

Browse files
author
Gerald Unterrainer
committed
Merge branch 'develop'
2 parents e450e28 + 8518c34 commit 08d312f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<modelVersion>4.0.0</modelVersion>
1212
<artifactId>rest-client</artifactId>
13-
<version>0.0.7</version>
13+
<version>0.0.8</version>
1414
<name>RestClient</name>
1515
<packaging>jar</packaging>
1616

src/main/java/info/unterrainer/commons/restclient/RestClient.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,8 @@ private String call(final String method, final String url, final StringParam hea
7474
Response response = call.execute();
7575

7676
if (!response.isSuccessful()) {
77-
log.warn("HTTP call to url [{}] failed with [{}]", url, response.code());
7877
response.body().close();
79-
throw new RestClientException(String.format("HTTP call failed with %s.", response.code()));
78+
throw new RestClientException(String.format("HTTP call to url %s failed with %s.", url, response.code()));
8079
}
8180

8281
log.debug("HTTP call to url [{}] succeeded with [{}]", url, response.code());

0 commit comments

Comments
 (0)