From cc99f3a146e134a75d9c6c449db262737309bd2b Mon Sep 17 00:00:00 2001 From: Luis Uguina Date: Sun, 21 Jun 2020 19:15:30 +1000 Subject: [PATCH] Fix: unable to show the message error in case of HTTP return code != Error.Type.OK (#272) --- src/com/sheepit/client/Client.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/sheepit/client/Client.java b/src/com/sheepit/client/Client.java index 5985b47..78ba709 100644 --- a/src/com/sheepit/client/Client.java +++ b/src/com/sheepit/client/Client.java @@ -750,7 +750,7 @@ import lombok.Data; 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) {