summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xwgetpaste4
1 files changed, 3 insertions, 1 deletions
diff --git a/wgetpaste b/wgetpaste
index 37f6d38..d314138 100755
--- a/wgetpaste
+++ b/wgetpaste
@@ -105,8 +105,10 @@ converttoraw() {
if [[ -n ${!regex} ]]; then
RAWURL=$(sed -e "${!regex}" <<< "$URL")
[[ -n $RAWURL ]] && return 0
+ echo "Convertion to raw url failed." >&2
+ else
+ echo "Raw download of pastes is not supported by $(getrecipient)." >&2
fi
- echo "Raw download of pastes is not supported by $(getrecipient)." >&2
return 1
}