From 8aadb2127704d63489dfd3ac3106425cde52359b Mon Sep 17 00:00:00 2001 From: Joschka Braun Date: Thu, 4 May 2023 14:50:35 +0200 Subject: [PATCH] :bug: fix: improve error message --- src/apis/jina_cloud.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/apis/jina_cloud.py b/src/apis/jina_cloud.py index 8628ae4..8c4b780 100644 --- a/src/apis/jina_cloud.py +++ b/src/apis/jina_cloud.py @@ -164,10 +164,11 @@ def deploy_on_jcloud(executor_name, microservice_path): time.sleep(5) except SystemExit as e: raise SystemExit(f''' -Looks like something went wrong in the generation and we didn't catch it. -Please, create an issue here: https://github.com/jina-ai/gptdeploy/issues/new/choose -nd add details on the microservice you are trying to create. -In the meantime, you can upgrade your GPT Deploy version, if not using latest, and try again. +Looks like you either ran out of credits or something went wrong in the generation and we didn't catch it. +To check if you ran out of credits, please go to https://cloud.jina.ai. +If you have credits left, please create an issue here https://github.com/jina-ai/gptdeploy/issues/new/choose +and add details on the microservice you are trying to create. +In that case, you can upgrade your GPT Deploy version, if not using latest, and try again. ''') from e if i == 2: raise Exception('''