diff --git a/upkg.sh b/upkg.sh index dd2df03..7d27735 100755 --- a/upkg.sh +++ b/upkg.sh @@ -502,7 +502,7 @@ upkg_fetch() { local url="$1" dest="$2" out processing "Downloading %s" "$url" if type wget >/dev/null 2>&1; then - wget -qO "$dest" "$url" || fatal "Error while downloading '%s'" "$url" + out=$(wget --server-response -qO "$dest" "$url" 2>&1) || fatal "Error while downloading '%s', server response:\n%s" "$url" "$out" elif type curl >/dev/null 2>&1; then curl -fsLo "$dest" "$url" || fatal "Error while downloading '%s'" "$url" else