8000 Update toolsnap error message with actionable instruction · github/github-mcp-server@2765d1d · GitHub
[go: up one dir, main page]

Skip to content

Commit 2765d1d

Browse files
committed
Update toolsnap error message with actionable instruction
1 parent 3e988d5 commit 2765d1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/toolsnaps/toolsnaps.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func Test(toolName string, tool any) error {
6060
diff := toolNode.Diff(snapNode, jd.SET).Render()
6161
if diff != "" {
6262
// If there is a difference, we return an error with the diff
63-
return fmt.Errorf("tool schema for %s has changed unexpectedly:\n%s", toolName, diff)
63+
return fmt.Errorf("tool schema for %s has changed unexpectedly:\n%s\nrun with `UPDATE_TOOLSNAPS=true` if this is expected", toolName, diff)
6464
}
6565

6666
return nil

0 commit comments

Comments
 (0)
0