From d539a75ce9593b6ae1d3d6e5eb60c9032755b410 Mon Sep 17 00:00:00 2001 From: Aliaksandr Nikitsin Date: Thu, 14 Aug 2025 11:36:29 +0200 Subject: [PATCH] error messages --- framework/python/src/api/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/python/src/api/api.py b/framework/python/src/api/api.py index 5c52f9a5f..56f93c781 100644 --- a/framework/python/src/api/api.py +++ b/framework/python/src/api/api.py @@ -1105,13 +1105,13 @@ async def upload_cert(self, file: UploadFile, response: Response): response.status_code = status.HTTP_400_BAD_REQUEST return self._generate_msg( False, - "Failed to upload certificate. Is it in the correct format?") + "Failed to upload certificate. The file is corrupted.") # Return error if something went wrong if cert_obj is None: response.status_code = 500 return self._generate_msg( - False, "Failed to upload certificate. Is it in the correct format?") + False, "Failed to upload certificate. An error occurred.") response.status_code = status.HTTP_201_CREATED