summaryrefslogtreecommitdiff
path: root/integrationtests/fileutils.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-06-24 20:24:30 +0300
committerPaul Buetow <paul@buetow.org>2025-06-24 20:24:30 +0300
commitf96256a46390283bc0cd129154ce71702f2c70a0 (patch)
treeda4584d93eb2113972f05881723a628f86dead29 /integrationtests/fileutils.go
parentdfb7d859e5abaf48afc5426d5bb85759a69df915 (diff)
Fix fmt.Errorf non-constant format string errors in multiple packages
- Fixed fmt.Errorf calls in integrationtests/fileutils.go - Fixed fmt.Errorf calls in integrationtests-old/fileutils.go - Fixed fmt.Errorf calls in internal/color/color.go - Fixed t.Errorf call in internal/mapr/logformat/default_test.go All tests now pass with Go 1.24's stricter format string requirements. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat (limited to 'integrationtests/fileutils.go')
-rw-r--r--integrationtests/fileutils.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/integrationtests/fileutils.go b/integrationtests/fileutils.go
index a1e1051..ffc26fe 100644
--- a/integrationtests/fileutils.go
+++ b/integrationtests/fileutils.go
@@ -81,7 +81,7 @@ func compareFiles(t *testing.T, fileA, fileB string) error {
if bytes, err := exec.Command("diff", "-u", fileA, fileB).Output(); err != nil {
sb.Write(bytes)
}
- return fmt.Errorf(sb.String())
+ return fmt.Errorf("%s", sb.String())
}
return nil