Skip to content

Commit 8e9d8fc

Browse files
committed
Upgrade error message
1 parent e6e49ff commit 8e9d8fc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

shiny/ui/_chat_bookmark.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ async def set_state(value: Jsonifiable) -> None:
100100
turns_arr = value.get("turns")
101101

102102
if not isinstance(turns_arr, list):
103-
raise ValueError("Chatlas bookmark value was not a list of objects")
103+
raise ValueError(
104+
"Chatlas bookmark value was not a list of chat message information"
105+
)
104106

105107
turns: list[Turn[Any]] = [
106108
Turn.model_validate(turn_obj) for turn_obj in turns_arr

0 commit comments

Comments
 (0)