Skip to content

Commit 2741238

Browse files
committed
Print out query parameters when a query fails
1 parent 9462fac commit 2741238

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/executeQuery.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ then
105105
redColor='\033[0;31m'
106106
noColor='\033[0m'
107107
echo -e "${redColor}${cypher_query_file_name}: ${cypher_query_result}${noColor}" >&2
108+
echo -e "${redColor}Parameters: ${query_parameters}${noColor}" >&2
108109
exit 1
109110
fi
110111
#echo "executeQuery: Cypher Query OK Result: ${cypher_query_result}"
@@ -115,6 +116,7 @@ if [[ -n "${error_message}" ]]; then
115116
redColor='\033[0;31m'
116117
noColor='\033[0m'
117118
echo -e "${redColor}${cypher_query_file_name}: ${error_message}${noColor}" >&2
119+
echo -e "${redColor}Parameters: ${query_parameters}${noColor}" >&2
118120
exit 1
119121
fi
120122

0 commit comments

Comments
 (0)