fix: Display reason for network failure (#77)

This commit is contained in:
Kroese 2024-05-17 16:10:33 +02:00 committed by GitHub
parent 43605ca812
commit 997bb53ab4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -41,6 +41,7 @@ info "$msg" && html "$msg"
fKill "progress.sh" fKill "progress.sh"
(( rc == 4 )) && error "Failed to download $BOOT , network failure!" && exit 60
(( rc != 0 )) && error "Failed to download $BOOT , reason: $rc" && exit 60 (( rc != 0 )) && error "Failed to download $BOOT , reason: $rc" && exit 60
[ ! -s "$TMP" ] && error "Failed to download $BOOT" && exit 61 [ ! -s "$TMP" ] && error "Failed to download $BOOT" && exit 61