import { TachiConfig } from "lib/config"; import React from "react"; import CenterLayoutPage from "../layout/CenterLayoutPage"; import DebugContent from "./DebugContent"; import Divider from "./Divider"; import ExternalLink from "./ExternalLink"; import Muted from "./Muted"; export default class ErrorBoundary extends React.Component { constructor(props: any) { super(props); this.state = { error: null, info: null }; } componentDidCatch(error: any, info: any) { console.error(error, info); this.setState({ error, info }); } render() { if (this.state.error) { return (

Whoops!


A fatal error has occured in rendering this page. You should report this!

Error Log

This error is not recoverable. :/ Go Home
); } return this.props.children; } }