diff --git a/command.go b/command.go index 523cb57e2..6866f7d0f 100644 --- a/command.go +++ b/command.go @@ -1070,7 +1070,7 @@ func (c *Command) ExecuteC() (cmd *Command, err error) { c = cmd } if !c.SilenceErrors { - c.PrintErrln(cmd.ErrPrefix(), err.Error()) + c.PrintErrln(c.ErrPrefix(), err.Error()) c.PrintErrf("Run '%v --help' for usage.\n", c.CommandPath()) } return c, err