From c649d9380d2c237f77470748cf8cddefdef6a386 Mon Sep 17 00:00:00 2001 From: Konstantin Wohlwend Date: Thu, 26 Dec 2024 18:26:42 -0800 Subject: [PATCH] Don't catch StackAssertionError in CRUD handlers --- apps/backend/src/route-handlers/crud-handler.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/backend/src/route-handlers/crud-handler.tsx b/apps/backend/src/route-handlers/crud-handler.tsx index 5ff7302dd..fc24bdc8d 100644 --- a/apps/backend/src/route-handlers/crud-handler.tsx +++ b/apps/backend/src/route-handlers/crud-handler.tsx @@ -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);