_stopwords_ fail on error

This commit is contained in:
Nathaniel Landau
2021-08-26 21:45:46 -04:00
parent 262cad4036
commit 5479663e88

View File

@@ -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=()