chore: refactor pdf worker loader

This commit is contained in:
David Nguyen
2025-02-24 21:47:06 +11:00
parent d4c1bad407
commit 5255e8671f
3 changed files with 13 additions and 14 deletions

View File

@ -171,9 +171,11 @@ export default function App() {
}
export function ErrorBoundary({ error }: Route.ErrorBoundaryProps) {
console.error('[RootErrorBoundary]', error);
const errorCode = isRouteErrorResponse(error) ? error.status : 500;
if (errorCode !== 404) {
console.error('[RootErrorBoundary]', error);
}
return <GenericErrorLayout errorCode={errorCode} />;
}