Revert "refactor(utils): simplify HTTP error payload key lookup"
All checks were successful
Tests / Declarative: Post Actions passed: 1183
All checks were successful
Tests / Declarative: Post Actions passed: 1183
This reverts commit a76a4a96afefa4b08a26cdd5f0db0e3ba32d6877.
This commit is contained in:
parent
a76a4a96af
commit
bdd0254523
@ -12,7 +12,7 @@ def _runtime_error_detail(exc: Exception) -> str | None:
|
||||
|
||||
def _http_message_from_payload(payload: object) -> str | None:
|
||||
if isinstance(payload, dict):
|
||||
raw = payload.get("error") or payload.get("message")
|
||||
raw = payload.get("errorMessage") or payload.get("error") or payload.get("message")
|
||||
if isinstance(raw, str) and raw.strip():
|
||||
return raw.strip()
|
||||
if isinstance(payload, str) and payload.strip():
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user