Skip to content

Commit

Permalink
Fix trpc errors deserialization
Browse files Browse the repository at this point in the history
  • Loading branch information
vladutjs committed Dec 13, 2023
1 parent 6936dc9 commit 8a2fbf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/link/internal/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const createBaseLink = <TRouter extends AnyRouter>(
if (id !== trpc.id) return;

if ('error' in trpc) {
const error = runtime.transformer.deserialize(trpc.error);
const error = trpc.error;
observer.error(TRPCClientError.from({ ...trpc, error }));
return;
}
Expand Down

0 comments on commit 8a2fbf1

Please sign in to comment.