Skip to content

Commit

Permalink
server response message
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnylqm committed Jul 24, 2024
1 parent e960b67 commit 3355751
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ private void downloadFile(DownloadTaskParams param) throws IOException {
.build();
Response response = client.newCall(request).execute();
if (response.code() > 299) {
throw new Error("Server return code " + response.code());
throw new Error("Server error:" + response.code() + " " + response.message());
}
ResponseBody body = response.body();
long contentLength = body.contentLength();
Expand Down

0 comments on commit 3355751

Please sign in to comment.