From 3ad0e92a0f8eabebd1f6fce5132c327caf77cc71 Mon Sep 17 00:00:00 2001 From: CalDescent Date: Fri, 29 Oct 2021 18:58:59 +0100 Subject: [PATCH] Log empty responses in qdata --- tools/qdata | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/qdata b/tools/qdata index 00716ec5..8b562324 100755 --- a/tools/qdata +++ b/tools/qdata @@ -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