trace error in layout

This commit is contained in:
m5r 2021-08-04 13:49:45 +08:00
parent fcefb69790
commit adf5fb31d1

View File

@ -71,6 +71,7 @@ const ErrorBoundary = withRouter(
}
public componentDidCatch(error: Error, errorInfo: ErrorInfo) {
console.trace("ddd");
logger.error(error, errorInfo.componentStack);
if (blitzErrors.some((blitzError) => error instanceof blitzError)) {
// let Blitz ErrorBoundary handle this one