Skip to content

Commit

Permalink
fix: improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
hoelger committed Sep 24, 2024
1 parent 0224da8 commit 9a92617
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bundle/src/assembly/resources/fed/ns3/ns3_installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,10 @@ download() {

if [ ! -f "$filename" ]; then
if has wget; then
wget --no-check-certificate -q "$url" || fail "The download URL seems to have changed. File not found: "$url"";
wget --no-check-certificate -q "$url" || fail "The server is not reachable or the download URL has changed. File not found: "$url"";
temporary_files="$temporary_files $filename"
elif has curl; then
curl -s -O "$url" || fail "The download URL seems to have changed. File not found: "$url"";
curl -s -O "$url" || fail "The server is not reachable or the download URL has changed. File not found: "$url"";
temporary_files="$temporary_files $filename"
else
fail "Can't download "$url".";
Expand Down

0 comments on commit 9a92617

Please sign in to comment.