This commit is contained in:
Dan 2023-02-13 10:38:21 -05:00
parent af8caeb985
commit 6373761a4c
1 changed files with 3 additions and 1 deletions

View File

@ -113,7 +113,9 @@ class ServiceTaskDelegate:
message = ServiceTaskDelegate.get_message_for_status(
proxied_response.status_code
)
error = f"Received an unexpected response from service {name} : {message}"
error = (
f"Received an unexpected response from service {name} : {message}"
)
if "error" in parsed_response:
error += parsed_response["error"]
if json_parse_error: