Merge pull request #86 from jina-ai/fix-drop-bad-error-message

Fix drop bad error message
This commit is contained in:
Florian Hönicke
2023-05-04 15:56:18 +02:00
committed by GitHub

View File

@@ -164,10 +164,12 @@ def deploy_on_jcloud(executor_name, microservice_path):
time.sleep(5)
except SystemExit as e:
raise SystemExit(f'''
Looks like your free credits ran out.
Please add payment information to your account and try again.
Visit https://cloud.jina.ai/
''') from e
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('''
Could not deploy on Jina Cloud.