Fix: unable to show the message error in case of HTTP return code != Error.Type.OK (#272)

This commit is contained in:
Luis Uguina
2020-06-21 19:15:30 +10:00
committed by GitHub
parent b4511e7730
commit cc99f3a146

View File

@@ -750,7 +750,7 @@ import lombok.Data;
while ((ret != Error.Type.OK || md5_check == false) && attempts < this.maxDownloadFileAttempts) { while ((ret != Error.Type.OK || md5_check == false) && attempts < this.maxDownloadFileAttempts) {
if (ret != Error.Type.OK) { 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 + ")"); this.log.debug("Client::downloadFile problem with Server.HTTPGetFile (return: " + ret + ") removing local file (path: " + local_path + ")");
} }
else if (md5_check == false) { else if (md5_check == false) {