From 7264595646c2e6d9622aa2eadfb771d3a15bec91 Mon Sep 17 00:00:00 2001 From: joan Date: Tue, 6 Sep 2022 14:23:25 +0200 Subject: [PATCH] Throw error for max-retries --- back/methods/edi/updateData.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/back/methods/edi/updateData.js b/back/methods/edi/updateData.js index 121e96778..a143653c2 100644 --- a/back/methods/edi/updateData.js +++ b/back/methods/edi/updateData.js @@ -126,7 +126,7 @@ module.exports = Self => { const response = await new Promise((resolve, reject) => { ftpClient.exec((err, response) => { - if (response.error) { + if (err || response.error) { console.debug(`Error downloading checksum file... ${response.error}`); reject(err); }