feat: add error boundary

makes crashes graceful
This commit is contained in:
zyachel
2023-01-22 21:14:46 +05:30
parent 71d1d5b34e
commit 5cc2ef02ce
7 changed files with 104 additions and 28 deletions

View File

@@ -1,6 +1,6 @@
import ErrorInfo from '../components/error/ErrorInfo';
const Error500 = () => {
return <ErrorInfo message="server messed up, sorry." statusCode={500} />;
return <ErrorInfo message='Server messed up, sorry.' statusCode={500} />;
};
export default Error500;