Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

Commit e17a97e

Browse files
committed
Updated error conditions, now breaks vs exits and looks for updated message from API
1 parent b507679 commit e17a97e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

mrva-code-search

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,12 @@ do_query() {
9494
# stop if we ran out of results
9595
elif [[ "$message" == '"Only the first 1000 search results are available"' ]]; then
9696
break
97+
elif [[ "$message" == '"Cannot access beyond the first 1000 results"' ]]; then
98+
break
9799
else
98100
echo
99101
echo "Error: ${message}"
100-
exit 1
102+
break
101103
fi
102104
fi
103105

0 commit comments

Comments
 (0)