From 8212bd113a7ce7430bce656f059424d2e4c0edde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20de=20la=20Pe=C3=B1a?= Date: Tue, 29 Oct 2024 11:18:06 +0100 Subject: [PATCH] fix: wrong copy&paste in error message --- modulegen/internal/workfile/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modulegen/internal/workfile/main.go b/modulegen/internal/workfile/main.go index 93225fbbbe..5638e92f65 100644 --- a/modulegen/internal/workfile/main.go +++ b/modulegen/internal/workfile/main.go @@ -27,12 +27,12 @@ func (g Generator) Generate(ctx context.Context) error { rootGoWork, err := Read(rootGoWorkFilePath) if err != nil { - return fmt.Errorf("read go.mod file: %w", err) + return fmt.Errorf("read go.work file: %w", err) } err = newWorkFile(rootGoWork, examples, modules) if err != nil { - return fmt.Errorf("create go.mod file: %w", err) + return fmt.Errorf("create go.work file: %w", err) } return Write(rootGoWorkFilePath, rootGoWork)