test harness: Properly quote error message interpolations.

No functional change, except that error messages are now more readable.
This commit is contained in:
Daniel Shahaf
2016-01-20 22:01:45 +00:00
parent 282c7134e8
commit 30d8f92df2
2 changed files with 5 additions and 5 deletions

View File

@@ -37,13 +37,13 @@
# Check the highlighter is valid.
[[ -f ${0:h:h}/highlighters/$1/$1-highlighter.zsh ]] || {
echo >&2 "Bail out! Could not find highlighter '$1'."
echo >&2 "Bail out! Could not find highlighter ${(qq)1}."
exit 2
}
# Check the highlighter has test data.
[[ -d ${0:h:h}/highlighters/$1/test-data ]] || {
echo >&2 "Bail out! Highlighter '$1' has no test data."
echo >&2 "Bail out! Highlighter ${(qq)1} has no test data."
exit 2
}