Skip to content

Commit 490884c

Browse files
committed
fix: revert
1 parent da87a30 commit 490884c

File tree

2 files changed

+16
-20
lines changed

2 files changed

+16
-20
lines changed

src/adapter/chrome.ts

+8-10
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,14 @@ export const createChromeHandler = <TRouter extends AnyRouter>(
6767

6868
sendResponse({
6969
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
70-
error: transformer.output.serialize(
71-
getErrorShape({
72-
config: router._def._config,
73-
error,
74-
type: method,
75-
path: params.path,
76-
input: params.input,
77-
ctx,
78-
}),
79-
),
70+
error: getErrorShape({
71+
config: router._def._config,
72+
error,
73+
type: method,
74+
path: params.path,
75+
input: params.input,
76+
ctx,
77+
}),
8078
});
8179
};
8280

src/adapter/window.ts

+8-10
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,14 @@ export const createWindowHandler = <TRouter extends AnyRouter>(
7373

7474
sendResponse({
7575
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
76-
error: transformer.output.serialize(
77-
getErrorShape({
78-
config: router._def._config,
79-
error,
80-
type: method,
81-
path: params.path,
82-
input: params.input,
83-
ctx,
84-
}),
85-
),
76+
error: getErrorShape({
77+
config: router._def._config,
78+
error,
79+
type: method,
80+
path: params.path,
81+
input: params.input,
82+
ctx,
83+
}),
8684
});
8785
};
8886

0 commit comments

Comments
 (0)