Skip to content

Commit

Permalink
Don't catch StackAssertionError in CRUD handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
N2D4 committed Dec 27, 2024
1 parent c98ab27 commit c649d93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/backend/src/route-handlers/crud-handler.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ export function createCrudHandlers<
},
});
} catch (error) {
if (allowedErrorTypes?.some((a) => error instanceof a)) {
if (allowedErrorTypes?.some((a) => error instanceof a) || error instanceof StackAssertionError) {
throw error;
}
throw new CrudHandlerInvocationError(error);
Expand Down

0 comments on commit c649d93

Please sign in to comment.