From 68c853a42b578bd11a2ae56e513c05f5dad16b7a Mon Sep 17 00:00:00 2001 From: pandu-k <107458762+pandu-k@users.noreply.github.com> Date: Wed, 21 Aug 2024 13:04:21 +1000 Subject: [PATCH] Updated cloud index 404 error, instructing users to check if the account is correct (#248) Co-authored-by: pandu-k --- src/marqo/errors.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/marqo/errors.py b/src/marqo/errors.py index 78ca5340..54a593ce 100644 --- a/src/marqo/errors.py +++ b/src/marqo/errors.py @@ -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")