Skip to content

Commit

Permalink
[fix] Forgot to change c.ErrPrefix() to cmd.ErrPrefix()
Browse files Browse the repository at this point in the history
To use an error prefix of subcommand as well.
  • Loading branch information
5ouma authored Sep 8, 2023
1 parent f2b602c commit 5dec565
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(c.ErrPrefix(), err.Error())
c.PrintErrln(cmd.ErrPrefix(), err.Error())
c.PrintErrf("Run '%v --help' for usage.\n", c.CommandPath())
}
return c, err
Expand Down

0 comments on commit 5dec565

Please sign in to comment.