Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.

Commit 334eddb

Browse files
committed
Small fixes of error messages
1 parent 2952161 commit 334eddb

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

nancy_run.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -367,10 +367,16 @@ function checkParams() {
367367
[ ! -z ${WORKLOAD_REAL+x} ] && let workloads_count=$workloads_count+1
368368
[ ! -z ${WORKLOAD_CUSTOM_SQL+x} ] && let workloads_count=$workloads_count+1
369369

370+
#--db-prepared-snapshot or --db-dump
371+
if ([ -z ${DB_PREPARED_SNAPSHOT+x} ] && [ -z ${DB_DUMP_PATH+x} ]); then
372+
>&2 echo "ERROR: The object (database) is not defined."
373+
exit 1;
374+
fi
375+
370376
# --workload-real or --workload-basis-path or --workload-custom-sql
371377
if [ "$workloads_count" -eq "0" ]
372378
then
373-
>&2 echo "ERROR: Workload not given."
379+
>&2 echo "ERROR: The workload is not defined."
374380
exit 1;
375381
fi
376382

@@ -380,12 +386,6 @@ function checkParams() {
380386
exit 1
381387
fi
382388

383-
#--db-prepared-snapshot or --db-dump
384-
if ([ -z ${DB_PREPARED_SNAPSHOT+x} ] && [ -z ${DB_DUMP_PATH+x} ]); then
385-
>&2 echo "ERROR: Snapshot or dump not given."
386-
exit 1;
387-
fi
388-
389389
if ([ ! -z ${DB_PREPARED_SNAPSHOT+x} ] && [ ! -z ${DB_DUMP_PATH+x} ])
390390
then
391391
>&2 echo "ERROR: Both snapshot and dump sources are given."

0 commit comments

Comments
 (0)