add debug info

This commit is contained in:
neilpang 2021-05-25 21:57:15 +08:00 committed by Bernard Spil
parent 4687e4d8fc
commit ac73e78554

View File

@ -149,14 +149,15 @@ _ionos_rest() {
response="$(_post "$data" "$IONOS_API$route" "" "$method" "application/json")"
else
export _H2="Accept: */*"
export _H3=
response="$(_get "$IONOS_API$route")"
fi
if [ "$?" != "0" ]; then
_err "Error $route"
_err "Error $route: $response"
return 1
fi
_debug2 "response" "$response"
return 0
}