From ed69cb40ef30a1b6c9c772315c5f72beea22de75 Mon Sep 17 00:00:00 2001 From: Kreato Date: Fri, 22 Sep 2023 22:46:40 +0300 Subject: [PATCH] chkupd: add raiseWhenFail on download() --- chkupd/autoupdater.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chkupd/autoupdater.nim b/chkupd/autoupdater.nim index 2e301093..1d9bc003 100644 --- a/chkupd/autoupdater.nim +++ b/chkupd/autoupdater.nim @@ -20,7 +20,7 @@ proc autoUpdater*(pkg: runFile, packageDir: string, newVersion: string, # Download the source try: - download(source, filename) + download(source, filename, raiseWhenFail = true) except Exception: if skipIfDownloadFails: echo "WARN: '"&pkg.pkg&"' failed because of download. Skipping."