trace error in layout
This commit is contained in:
parent
fcefb69790
commit
adf5fb31d1
@ -71,6 +71,7 @@ const ErrorBoundary = withRouter(
|
|||||||
}
|
}
|
||||||
|
|
||||||
public componentDidCatch(error: Error, errorInfo: ErrorInfo) {
|
public componentDidCatch(error: Error, errorInfo: ErrorInfo) {
|
||||||
|
console.trace("ddd");
|
||||||
logger.error(error, errorInfo.componentStack);
|
logger.error(error, errorInfo.componentStack);
|
||||||
if (blitzErrors.some((blitzError) => error instanceof blitzError)) {
|
if (blitzErrors.some((blitzError) => error instanceof blitzError)) {
|
||||||
// let Blitz ErrorBoundary handle this one
|
// let Blitz ErrorBoundary handle this one
|
||||||
|
Loading…
Reference in New Issue
Block a user