Skip to content

Commit 908d988

Browse files
fix(chat): improve error message for missing message
- Updated the error message in `MessageService` to provide a clearer indication when a message with a specific `leaf_id` is not found, enhancing the clarity of error reporting.
1 parent 5e3b709 commit 908d988

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/askui/chat/api/messages/service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def _get_path_endpoints(
167167
).scalar_one_or_none()
168168

169169
if branch_root_id is None:
170-
error_msg = f"Root message not found in thread {thread_id} for message {leaf_id}"
170+
error_msg = f"Message with id '{leaf_id}' not found"
171171
raise NotFoundError(error_msg)
172172

173173
else:

0 commit comments

Comments
 (0)