From a857251ab920f7af20e081229eef90c2d7a233f9 Mon Sep 17 00:00:00 2001 From: Zai Shi Date: Mon, 3 Feb 2025 18:01:05 -0800 Subject: [PATCH] throw no project error in smart request --- apps/backend/src/route-handlers/smart-request.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/backend/src/route-handlers/smart-request.tsx b/apps/backend/src/route-handlers/smart-request.tsx index b4b51fd59..d556e3af9 100644 --- a/apps/backend/src/route-handlers/smart-request.tsx +++ b/apps/backend/src/route-handlers/smart-request.tsx @@ -252,7 +252,7 @@ const parseAuth = withTraceSpan('smart request parseAuth', async (req: NextReque const project = queriesResults.project; if (!project) { - throw new StackAssertionError("Project not found; this should never happen because passing the checks until here should guarantee that the project exists and that access to it is granted", { projectId }); + throw new KnownErrors.ProjectNotFound(projectId); } return {