Skip to content

Commit 759d09b

Browse files
committed
Error fix
1 parent e0a3c75 commit 759d09b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/wcgw/client/tools.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def initialize(
117117
# Try to load state from the chat ID
118118
if not context.bash_state.load_state_from_chat_id(chat_id):
119119
return (
120-
f"Error: No saved bash state found for chat ID {chat_id}",
120+
f"Error: No saved bash state found for chat ID {chat_id}. Please re-initialize to get a new id or use correct id.",
121121
context,
122122
{},
123123
)
@@ -319,7 +319,7 @@ def reset_wcgw(
319319
if chat_id != context.bash_state.current_chat_id:
320320
# Try to load state from the chat ID
321321
if not context.bash_state.load_state_from_chat_id(chat_id):
322-
return f"Error: No saved bash state found for chat ID {chat_id}"
322+
return f"Error: No saved bash state found for chat ID {chat_id}. Please re-initialize to get a new id or use correct id."
323323
if mode_name:
324324
# update modes if they're relative
325325
if isinstance(change_mode, CodeWriterMode):
@@ -824,7 +824,7 @@ def file_writing(
824824
# Try to load state from the chat ID
825825
if not context.bash_state.load_state_from_chat_id(file_writing_args.chat_id):
826826
return (
827-
f"Error: No saved bash state found for chat ID {file_writing_args.chat_id}. Please initialize first with this ID.",
827+
f"Error: No saved bash state found for chat ID {file_writing_args.chat_id}. Please re-initialize to get a new id or use correct id.",
828828
{},
829829
)
830830

0 commit comments

Comments
 (0)