mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-25 22:51:39 +00:00
minor add error code
This commit is contained in:
parent
c8e9a31ee5
commit
687cfcc2b1
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" )"
|
||||
fi
|
||||
_ret="$?"
|
||||
if [ "$_ret" != "0" ] ; then
|
||||
_err "Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: $_ret"
|
||||
fi
|
||||
else
|
||||
_debug "WGET" "$WGET"
|
||||
if [ "$needbase64" ] ; then
|
||||
@ -659,6 +662,9 @@ _post() {
|
||||
fi
|
||||
fi
|
||||
_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"
|
||||
fi
|
||||
_debug "_ret" "$_ret"
|
||||
|
Loading…
Reference in New Issue
Block a user