fix(hermes): Restore support for the existing errorMessage response payload with a one-line fallback addition, satisfying the failing test without changing behavior for error or message payloads. (incident ariadne/415)
This commit is contained in:
parent
a76a4a96af
commit
a4a06db1ea
@ -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("error") or payload.get("message") or payload.get("errorMessage")
|
||||
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