From 5479663e88d300f1cccd2e5e75dd84e5bacda32f Mon Sep 17 00:00:00 2001 From: Nathaniel Landau Date: Thu, 26 Aug 2021 21:45:46 -0400 Subject: [PATCH] _stopwords_ fail on error --- utilities/textProcessing.bash | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utilities/textProcessing.bash b/utilities/textProcessing.bash index 0bbe08d..3355899 100644 --- a/utilities/textProcessing.bash +++ b/utilities/textProcessing.bash @@ -119,7 +119,8 @@ _stopWords_() { if [ -f "${sedFile}" ]; then string="$(echo "${string}" | ${SED_COMMAND} -f "${sedFile}")" else - debug "Missing sedfile in _stopWords_()" + error "Missing sedfile in _stopWords_()" + return 1 fi declare -a localStopWords=()