Skip to content

Commit

Permalink
feat: log errorInfo from onRecoverableError
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyreilly committed Oct 9, 2023
1 parent 35441b3 commit ef20342
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/docusaurus/src/client/clientEntry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ if (ExecutionEnvironment.canUseDOM) {
</HelmetProvider>
);

const onRecoverableError = (error: unknown): void => {
console.error('Docusaurus React Root onRecoverableError:', error);
const onRecoverableError = (error: unknown, errorInfo: { digest?: string | null, componentStack?: string | null }): void => {
console.error('Docusaurus React Root onRecoverableError:', error, errorInfo);
};

const renderApp = () => {
Expand Down

0 comments on commit ef20342

Please sign in to comment.