From: Christian Tacke Date: Sat, 4 Jun 2016 02:15:16 +0000 (+0200) Subject: Include method and URL in curl error (#214) X-Git-Tag: v0.3.0~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df292dece2360e323753ae70c4c8c6802eef05a4;p=thirdparty%2Fdehydrated.git Include method and URL in curl error (#214) In case curl gives an error, it's helpful to know the URL being tried and the method. In the GET case, one can easily retry in the shell and debug this. --- diff --git a/letsencrypt.sh b/letsencrypt.sh index bb5f312..4efa570 100755 --- a/letsencrypt.sh +++ b/letsencrypt.sh @@ -332,7 +332,7 @@ http_request() { set -e if [[ ! "${curlret}" = "0" ]]; then - _exiterr "Problem connecting to server (curl returned with ${curlret})" + _exiterr "Problem connecting to server (${1} for ${2}; curl returned with ${curlret})" fi if [[ ! "${statuscode:0:1}" = "2" ]]; then