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

1
app.go
View File

@@ -240,7 +240,6 @@ func (a *App) Run(arguments []string) (err error) {
if a.Before != nil {
beforeErr := a.Before(context)
if beforeErr != nil {
fmt.Fprintf(a.Writer, "%v\n\n", beforeErr)
ShowAppHelp(context)
HandleExitCoder(beforeErr)
err = beforeErr