Do not double print errors from Before()

They should be handled by HandleExitCoder() as `After()` errors are.
This commit is contained in:
Jesse Szwedko
2017-04-24 14:54:35 -07:00
parent f229e3c59c
commit c64d74a5d9
2 changed files with 0 additions and 3 deletions

View File

@@ -197,8 +197,6 @@ func (c Command) Run(ctx *Context) (err error) {
if c.Before != nil {
err = c.Before(context)
if err != nil {
fmt.Fprintln(context.App.Writer, err)
fmt.Fprintln(context.App.Writer)
ShowCommandHelp(context, c.Name)
HandleExitCoder(err)
return err