From b6fbf41e2b34317d22368d72c17e00254771bafa Mon Sep 17 00:00:00 2001 From: Sebastien Flory Date: Fri, 13 Dec 2024 11:11:50 +0100 Subject: [PATCH] Fix: conversation not found should not trigger a 500 (#9350) --- front/lib/api/assistant/messages.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/lib/api/assistant/messages.ts b/front/lib/api/assistant/messages.ts index 2ddf2fc32868..61e4b36f7d15 100644 --- a/front/lib/api/assistant/messages.ts +++ b/front/lib/api/assistant/messages.ts @@ -416,7 +416,7 @@ export async function fetchConversationMessages( }); if (!conversation) { - return new Err(new Error("Conversation not found.")); + return new Err(new ConversationError("conversation_not_found")); } const { hasMore, messages } = await fetchMessagesForPage(