Skip to content

Commit

Permalink
Fix error detail debug property
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Stamm <[email protected]>
  • Loading branch information
timostamm committed Sep 9, 2024
1 parent ed63cee commit b2d6a10
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/connect/src/protocol-connect/error-json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit b2d6a10

Please sign in to comment.