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,7 +1,7 @@
import ErrorInfo from '../components/error/ErrorInfo';
const Error404 = () => {
return <ErrorInfo />;
return <ErrorInfo message='Not found, sorry.' statusCode={404} />;
};
export default Error404;