From 67c5226645e66b877c6627d98be86cb86989de7a Mon Sep 17 00:00:00 2001 From: Yuri Shkuro Date: Sun, 22 Oct 2017 19:56:39 -0400 Subject: [PATCH] Print invalid keyspace value on error Signed-off-by: Yuri Shkuro --- plugin/storage/cassandra/schema/create.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugin/storage/cassandra/schema/create.sh b/plugin/storage/cassandra/schema/create.sh index 1b174594aeb..8868ce3e804 100755 --- a/plugin/storage/cassandra/schema/create.sh +++ b/plugin/storage/cassandra/schema/create.sh @@ -41,7 +41,10 @@ else fi keyspace=${KEYSPACE:-"jaeger_v1_${datacenter}"} -if [[ $keyspace =~ [^a-zA-Z0-9_] ]]; then usage "invalid characters in KEYSPACE parameter, please use letters, digits or underscores(a-zA-Z0-9_)"; fi + +if [[ $keyspace =~ [^a-zA-Z0-9_] ]]; then + usage "invalid characters in KEYSPACE=$keyspace parameter, please use letters, digits or underscores" +fi >&2 cat <