Skip to content

Commit

Permalink
Fix: conversation not found should not trigger a 500 (#9350)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fraggle authored Dec 13, 2024
1 parent fa8a10e commit b6fbf41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion front/lib/api/assistant/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit b6fbf41

Please sign in to comment.