move error message to return value

This commit is contained in:
Joey Hess 2014-12-11 18:26:29 -04:00
parent 1bf1f4b685
commit 29a6431582

View file

@ -140,8 +140,7 @@ while read line; do
file="$4"
case "$2" in
STORE)
runcmd echo "upload not supported"
echo TRANSFER-FAILURE STORE "$key"
echo TRANSFER-FAILURE STORE "$key" "upload not supported"
;;
RETRIEVE)
urltmp=$(mktemp)