aboutsummaryrefslogtreecommitdiffstats
path: root/tools/search_wikipedia.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/search_wikipedia.sh')
-rwxr-xr-xtools/search_wikipedia.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/search_wikipedia.sh b/tools/search_wikipedia.sh
index 0bf791e..6c7010d 100755
--- a/tools/search_wikipedia.sh
+++ b/tools/search_wikipedia.sh
@@ -17,7 +17,7 @@ main() {
title="$(echo "$json" | jq -r '.query.search[0].title // empty')"
pageid="$(echo "$json" | jq -r '.query.search[0].pageid // empty')"
if [[ -z "$title" || -z "$pageid" ]]; then
- echo "Error: No results found for '$argc_query'"
+ echo "error: no results for '$argc_query'" >&2
exit 1
fi
title="$(echo "$title" | tr ' ' '_')"