Skip to content

Commit

Permalink
Updated cloud index 404 error, instructing users to check if the acco…
Browse files Browse the repository at this point in the history
…unt is correct (#248)

Co-authored-by: pandu-k <pand@s2search.io>
  • Loading branch information
pandu-k and pandu-k authored Aug 21, 2024
1 parent 7562b24 commit 68c853a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/marqo/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ class MarqoCloudIndexNotFoundError(MarqoError):
status_code = HTTPStatus.NOT_FOUND

def __init__(self, index_name: str,) -> None:
self.message = f"The index name {index_name} does not exist in the Marqo cloud or client's cache" \
f" has not yet been updated. Please check the index name and try again.\n" \
f"- If the problem persists, please contact marqo support at support@marqo.ai"
self.message = (f"The index name {index_name} does not exist in Marqo cloud or the client's cache has not yet been updated. \n"
f"- Please check whether the index name is correct \n"
f"- Please check whether the client's API key matches the account for this index \n"
f"If the problem persists, please contact marqo support at support@marqo.ai")

0 comments on commit 68c853a

Please sign in to comment.