Skip to content

Commit 374c441

Browse files
committed
fix(text_editor.py): update error message for hash mismatch to provide clearer instructions on resolving the issue
1 parent a0dfd3e commit 374c441

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mcp_text_editor/text_editor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ async def edit_file_contents(
263263
elif current_hash != expected_hash:
264264
return {
265265
"result": "error",
266-
"reason": "Hash mismatch - file has been modified",
266+
"reason": "FileHash mismatch - Please use get_text_file_contents tool to get current content and hashes, then retry with the updated hashes.",
267267
"file_hash": None,
268268
"content": None,
269269
}

0 commit comments

Comments
 (0)