in packages/ide-toolbox/src/react-buddy-error-boundary/react-buddy-error-boundary.tsx [25:44]
render() {
const {error} = this.state;
const {componentName, children} = this.props;
if (error != null) {
return (
<div className={styles.errorMessageContainer}>
<h2 className={styles.errorMessageTitle}>
{componentName
? `Something went wrong while rendering ${componentName} component`
: 'Something went wrong'}
</h2>
<p>{error.message}</p>
<pre className={styles.errorMessageStack}>{error.stack}</pre>
</div>
);
}
return children;
}