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 {
out, err := c.CombinedOutput()
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 {
fmt.Printf("in %-60s; %s\n", c.Dir, c.String())