From 5faf6e272f60df9451b7201e1f1dca321b8a6023 Mon Sep 17 00:00:00 2001 From: Andrew Theurer Date: Fri, 8 Nov 2024 09:39:48 -0500 Subject: [PATCH] Need to exit when can't support cdm ver --- rickshaw-index | 1 + 1 file changed, 1 insertion(+) diff --git a/rickshaw-index b/rickshaw-index index d17202e1..32bffd6d 100755 --- a/rickshaw-index +++ b/rickshaw-index @@ -805,6 +805,7 @@ if (not grep(/^$cdm{'ver'}$/, @suported_cdm_vers)) { printf "The version of CDM used in OpenSearch [%s] is not one that is supported by rickshaw-index: [%s]\n", $cdm{'ver'}, join(" ", @suported_cdm_vers); printf "Either use an older version of CDM or (ideally) find a newer version of rickshaw which supports %s\n", $cdm{'ver'}; + exit 1; } printf "Exporting from %s to OpenSearch documents and POSTing to localhost:9200\n", $result_file;