Skip to content

Commit

Permalink
chkupd: add raiseWhenFail on download()
Browse files Browse the repository at this point in the history
  • Loading branch information
kreatoo committed Sep 22, 2023
1 parent 9dfca04 commit ed69cb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chkupd/autoupdater.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit ed69cb4

Please sign in to comment.