Browse Source

minor add error code

master
neil 9 years ago
parent
commit
687cfcc2b1
  1. 6
      acme.sh

6
acme.sh

@ -643,6 +643,9 @@ _post() {
response="$($_CURL --user-agent "$USER_AGENT" -X $httpmethod -H "$_H1" -H "$_H2" -H "$_H3" -H "$_H4" --data "$body" "$url" )" response="$($_CURL --user-agent "$USER_AGENT" -X $httpmethod -H "$_H1" -H "$_H2" -H "$_H3" -H "$_H4" --data "$body" "$url" )"
fi fi
_ret="$?" _ret="$?"
if [ "$_ret" != "0" ] ; then
_err "Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: $_ret"
fi
else else
_debug "WGET" "$WGET" _debug "WGET" "$WGET"
if [ "$needbase64" ] ; then if [ "$needbase64" ] ; then
@ -659,6 +662,9 @@ _post() {
fi fi
fi fi
_ret="$?" _ret="$?"
if [ "$_ret" != "0" ] ; then
_err "Please refer to https://www.gnu.org/software/wget/manual/html_node/Exit-Status.html for error code: $_ret"
fi
_sed_i "s/^ *//g" "$HTTP_HEADER" _sed_i "s/^ *//g" "$HTTP_HEADER"
fi fi
_debug "_ret" "$_ret" _debug "_ret" "$_ret"

Loading…
Cancel
Save