From f85f346285b9fcfaed1ef01b4e9c8e1ec16f77f0 Mon Sep 17 00:00:00 2001 From: Iain Sproat <68657+iainsproat@users.noreply.github.com> Date: Fri, 18 Jul 2025 10:47:28 +0100 Subject: [PATCH] chore(server/errors): add message to error (#5105) --- packages/server/modules/core/services/projects.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/server/modules/core/services/projects.ts b/packages/server/modules/core/services/projects.ts index 452901838..af7197935 100644 --- a/packages/server/modules/core/services/projects.ts +++ b/packages/server/modules/core/services/projects.ts @@ -139,10 +139,11 @@ export const queryAllProjectsFactory = ({ let cursor: Date | null = null let iterationCount = 0 - if (!userId && !workspaceId) throw new ProjectQueryError() + if (!userId && !workspaceId) + throw new ProjectQueryError('No user or workspace ID provided') do { - if (iterationCount > 500) throw new ProjectQueryError() + if (iterationCount > 500) throw new ProjectQueryError('Too many iterations') const { streams, cursorDate } = await getStreams({ cursor,