Log empty responses in qdata

This commit is contained in:
CalDescent 2021-10-29 18:58:59 +01:00
parent 3934120541
commit 3ad0e92a0f

View File

@ -75,6 +75,9 @@ elif [[ "${method}" == "GET" ]]; then
fi
response=$(curl --silent --insecure -X GET "http://${host}:${port}/arbitrary/${service}/${name}?rebuild=${rebuild}&filepath=${filepath}")
if [ -z "${response}" ]; then
echo "Empty response from ${host}:${port}"
fi
if [[ "${response}" == *"error"* || "${response}" == *"ERROR"* ]]; then
echo "${response}"; exit
fi