Skip to content

Commit c2e5303

Browse files
committed
Log stringified error
1 parent 9fb45b3 commit c2e5303

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/server/serverRender.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,11 @@ const serverRender = async ({ url, loggedIn, cookie }: SSROption) => {
9797
console.log('Apollo Error! Rendering result anyways');
9898
if (e instanceof ApolloError) {
9999
const notFound = e.graphQLErrors.some(
100-
ge => (ge.extensions as any)?.code === 'NOT_FOUND',
100+
(ge) => (ge.extensions as any)?.code === 'NOT_FOUND',
101101
);
102102
if (notFound) store.dispatch(error.actions.showNotFound());
103103
}
104-
console.log(e);
104+
console.log(JSON.stringify(e));
105105
}
106106

107107
const content = ReactDOMServer.renderToString(Root);

0 commit comments

Comments
 (0)