From b2d6a1095aa5c40e6da0c7302fa9ea0f675d097b Mon Sep 17 00:00:00 2001 From: Timo Stamm Date: Mon, 9 Sep 2024 18:10:09 +0200 Subject: [PATCH] Fix error detail debug property Signed-off-by: Timo Stamm --- packages/connect/src/protocol-connect/error-json.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/connect/src/protocol-connect/error-json.ts b/packages/connect/src/protocol-connect/error-json.ts index 7e5930f33..425bebb8f 100644 --- a/packages/connect/src/protocol-connect/error-json.ts +++ b/packages/connect/src/protocol-connect/error-json.ts @@ -61,8 +61,7 @@ export function errorFromJson( typeof detail != "object" || Array.isArray(detail) || typeof detail.type != "string" || - typeof detail.value != "string" || - ("debug" in detail && typeof detail.debug != "object") + typeof detail.value != "string" ) { throw fallback; }