mirror of
https://github.com/spf13/cobra
synced 2025-04-27 09:07:19 +00:00
[revert] Crude change of c.ErrPrefix()
Since `cmd` is `nil` or same as `c`.
This commit is contained in:
parent
5dec565c90
commit
c24c3fdecf
1 changed files with 1 additions and 1 deletions
|
@ -1070,7 +1070,7 @@ func (c *Command) ExecuteC() (cmd *Command, err error) {
|
||||||
c = cmd
|
c = cmd
|
||||||
}
|
}
|
||||||
if !c.SilenceErrors {
|
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())
|
c.PrintErrf("Run '%v --help' for usage.\n", c.CommandPath())
|
||||||
}
|
}
|
||||||
return c, err
|
return c, err
|
||||||
|
|
Loading…
Add table
Reference in a new issue