From fd6c96cb48f495aa5243370d0395367d64716381 Mon Sep 17 00:00:00 2001 From: MoritzWeber Date: Wed, 17 Jul 2024 16:34:49 +0200 Subject: [PATCH] refactor: Improve error msg for missing status in T4C lic-server --- .../capellacollab/settings/modelsources/t4c/exceptions.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/capellacollab/settings/modelsources/t4c/exceptions.py b/backend/capellacollab/settings/modelsources/t4c/exceptions.py index 20c652d5b..3915ea6a3 100644 --- a/backend/capellacollab/settings/modelsources/t4c/exceptions.py +++ b/backend/capellacollab/settings/modelsources/t4c/exceptions.py @@ -69,7 +69,10 @@ def __init__(self): super().__init__( status_code=status.HTTP_422_UNPROCESSABLE_ENTITY, title="License server has no status", - reason="No status is available. This can happen during and after license server restarts.", + reason=( + "No status is available. This can happen during and after license server restarts. " + "The license information will be available when a client claims a license." + ), err_code="T4C_LICENSE_SERVER_NO_STATUS", )