Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2765d1d

Browse files
committed
Update toolsnap error message with actionable instruction
1 parent3e988d5 commit2765d1d

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
ifdiff!="" {
6262
// If there is a difference, we return an error with the diff
63-
returnfmt.Errorf("tool schema for %s has changed unexpectedly:\n%s",toolName,diff)
63+
returnfmt.Errorf("tool schema for %s has changed unexpectedly:\n%s\nrun with `UPDATE_TOOLSNAPS=true` if this is expected",toolName,diff)
6464
}
6565

6666
returnnil

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp