Improve error message and fix typo in iampolicygenerator module name

This commit is contained in:
Katrina Verey
2023-02-02 14:15:40 -05:00
parent 9a1a203b52
commit 03669a1804
2 changed files with 2 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ func (e *Editor) run(args ...string) error {
if e.doIt { if e.doIt {
out, err := c.CombinedOutput() out, err := c.CombinedOutput()
if err != nil { if err != nil {
return fmt.Errorf("%s out=%q", err.Error(), out) return fmt.Errorf("failed to run go mod command in %s: %s (stdout=%q)", e.module.ShortName(), err.Error(), out)
} }
} else { } else {
fmt.Printf("in %-60s; %s\n", c.Dir, c.String()) fmt.Printf("in %-60s; %s\n", c.Dir, c.String())

View File

@@ -1,4 +1,4 @@
module sigs.k8s.io/kustomize/plugin/builtin/iampolicypgenerator module sigs.k8s.io/kustomize/plugin/builtin/iampolicygenerator
go 1.19 go 1.19