Skip to content

Commit

Permalink
Update errorboundry.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
shamoon committed Jan 6, 2025
1 parent 6a0fbba commit fd50241
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/errorboundry.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ export default class ErrorBoundary extends React.Component {
});

// You can also log error messages to an error reporting service here
// eslint-disable-next-line no-console
console.error(error, errorInfo);
if (error || errorInfo) {
// eslint-disable-next-line no-console
console.error("component error: %s, info: %s", error, errorInfo);
}
}

render() {
Expand Down

0 comments on commit fd50241

Please sign in to comment.