From 173f9d45d507360a90bb7e63ab1d111d8ab6ddff Mon Sep 17 00:00:00 2001 From: the-sane <3657071+the-sane@users.noreply.github.com> Date: Thu, 30 Mar 2023 12:35:37 -0400 Subject: [PATCH] Improve download fail handling --- lug-helper.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lug-helper.sh b/lug-helper.sh index 9dead39..b5a9cc2 100755 --- a/lug-helper.sh +++ b/lug-helper.sh @@ -1425,7 +1425,10 @@ download_install() { # Sanity check if [ ! -f "$tmp_dir/$download_file" ]; then - debug_print exit "Script error: The requested $download_type file was not downloaded. Aborting" + # Something went wrong with the download and the file doesn't exist + message error "Something went wrong and the requested $download_type file could not be downloaded!" + debug_print continue "Download failed! File not found: $tmp_dir/$download_file" + return 1 fi # Extract the archive to the tmp directory