Skip to content

Commit

Permalink
[revert] Crude change of c.ErrPrefix()
Browse files Browse the repository at this point in the history
Since `cmd` is `nil` or same as `c`.
  • Loading branch information
5ouma committed Sep 8, 2023
1 parent 5dec565 commit c24c3fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c24c3fd

Please sign in to comment.