Skip to content

Commit 40372fc

Browse files
committed
Output invalid query file name
1 parent 0347b0b commit 40372fc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/executeQuery.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ NEO4J_HTTP_TRANSACTION_ENDPOINT=${NEO4J_HTTP_TRANSACTION_ENDPOINT:-"db/neo4j/tx/
2020

2121
# Check if environment variable is set
2222
if [ -z "${NEO4J_INITIAL_PASSWORD}" ]; then
23-
echo "Requires environment variable NEO4J_INITIAL_PASSWORD to be set first. Use 'export NEO4J_INITIAL_PASSWORD=<your-own-password>'." >&2
23+
echo "executeQuery requires environment variable NEO4J_INITIAL_PASSWORD to be set first. Use 'export NEO4J_INITIAL_PASSWORD=<your-own-password>'." >&2
2424
exit 1
2525
fi
2626

@@ -31,7 +31,7 @@ query_parameters=""
3131

3232
# Input Arguments: Function to print usage information
3333
print_usage() {
34-
echo "Usage: $0 <filename> [--no-source-reference-column]" >&2
34+
echo "executeQuery Usage: $0 <filename> [--no-source-reference-column]" >&2
3535
echo "Options:" >&2
3636
echo " --no-source-reference-column: Exclude the source reference column" >&2
3737
}
@@ -53,7 +53,7 @@ while [[ $# -gt 0 ]]; do
5353

5454
# Input Arguments: Check the first input argument to be a valid file
5555
if [ ! -f "${cypher_query_file_name}" ] ; then
56-
echo "Error: Please provide a valid filename." >&2
56+
echo "executeQuery Error: Invalid cypher query filename ${cypher_query_file_name}." >&2
5757
print_usage
5858
exit 1
5959
fi

0 commit comments

Comments
 (0)