Skip to content

Commit

Permalink
Updated error conditions, now breaks vs exits and looks for updated m…
Browse files Browse the repository at this point in the history
…essage from API
  • Loading branch information
aegilops committed May 31, 2023
1 parent b507679 commit e17a97e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mrva-code-search
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,12 @@ do_query() {
# stop if we ran out of results
elif [[ "$message" == '"Only the first 1000 search results are available"' ]]; then
break
elif [[ "$message" == '"Cannot access beyond the first 1000 results"' ]]; then
break
else
echo
echo "Error: ${message}"
exit 1
break
fi
fi

Expand Down

0 comments on commit e17a97e

Please sign in to comment.