fix(services): a better error message

This commit is contained in:
Houkime 2024-01-31 10:51:01 +00:00
parent b3c7e2fa9e
commit b22dfc0469

View file

@ -197,7 +197,7 @@ class ServicesMutations:
else: else:
return ServiceJobMutationReturn( return ServiceJobMutationReturn(
success=False, success=False,
message=f"Service move failure: {job.status_text}: {job.error}", message=f"While moving service and performing the step '{job.status_text}', error occured: {job.error}",
code=400, code=400,
service=service_to_graphql_service(service), service=service_to_graphql_service(service),
job=job_to_api_job(job), job=job_to_api_job(job),