Skip to content
This repository has been archived by the owner on Apr 22, 2021. It is now read-only.

Commit

Permalink
Fix: unable to show the message error in case of HTTP return code != …
Browse files Browse the repository at this point in the history
…Error.Type.OK (#272)
  • Loading branch information
luguina authored Jun 21, 2020
1 parent 286fc25 commit abdd96c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/sheepit/client/Client.java
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ private Error.Type downloadFile(Job ajob, String local_path, String md5_server,

while ((ret != Error.Type.OK || md5_check == false) && attempts < this.maxDownloadFileAttempts) {
if (ret != Error.Type.OK) {
this.gui.error(String.format("Unable to download %s (error %d). Retrying now", download_type, ret));
this.gui.error(String.format("Unable to download %s (error %s). Retrying now", download_type, ret));
this.log.debug("Client::downloadFile problem with Server.HTTPGetFile (return: " + ret + ") removing local file (path: " + local_path + ")");
}
else if (md5_check == false) {
Expand Down

0 comments on commit abdd96c

Please sign in to comment.