Skip to content

Commit

Permalink
improve the error message when a search fails (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni authored Aug 7, 2018
1 parent 963265f commit 31da8ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,8 @@ def return_matching_key(api_path, search_key, return_key, null_result_ok=False):
elif result_len == 0 and null_result_ok is True:
return None
else:
print_error("%d element in array for search key '%s' in API '%s'. Please note that all searches are case-sensitive. Fatal error." % (result_len, search_key, api_path))
print_error("%d element in array for search key '%s' in API '%s'. Please note that all searches are case-sensitive." % (result_len, search_key, api_path))
print_error("Please also ensure that the user has permissions to view the searched objects. Fatal error.")
sys.exit(2)


Expand Down

0 comments on commit 31da8ae

Please sign in to comment.