Skip to content

Commit 55e12ad

Browse files
authored
Merge pull request #42 from hellojavaer/1.0.x
update
2 parents f186dc7 + 5b63ee1 commit 55e12ad

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ddal-datasource/src/main/java/org/hellojavaer/ddal/datasource/DefaultDDALDataSource.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,8 @@ public static String sendPost(String url, Map<String, String> params) {
232232
}
233233
int responseCode = con.getResponseCode();
234234
if (responseCode != 200) {
235-
throw new IllegalStateException("http code " + responseCode + "\n" + response.toString());
235+
throw new IllegalStateException("the requested url: " + url + " returned error code: "
236+
+ responseCode + "\n" + response.toString());
236237
} else {
237238
return response.toString();
238239
}

ddal-sequence/src/main/java/org/hellojavaer/ddal/sequence/HttpSequenceRangeGetter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,8 @@ public static String sendPost(String url, Map<String, String> params) {
202202
}
203203
int responseCode = con.getResponseCode();
204204
if (responseCode != 200) {
205-
throw new IllegalStateException("http code " + responseCode + "\n" + response.toString());
205+
throw new IllegalStateException("the requested url: " + url + " returned error code: "
206+
+ responseCode + "\n" + response.toString());
206207
} else {
207208
return response.toString();
208209
}

0 commit comments

Comments
 (0)