Update errorboundry.jsx

This commit is contained in:
shamoon 2025-01-06 00:53:10 -08:00
parent 6a0fbba407
commit fd50241e2a
No known key found for this signature in database

View File

@ -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() {