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.
This commit is contained in:
Christian Tacke authored and Lukas Schauer committed 2016-06-04 04:15:16 +02:00
1 parent f4138efab9
commit df292dece2
1 file changed
+1 -1
+1 -1
View File
@@ -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