From 33744eb004bfc4ec76049bba7f7b264ff6191817 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alo=C3=AFs=20Micard?= Date: Mon, 27 Apr 2020 19:49:29 +0200 Subject: [PATCH] Harmonize BeforeError handling --- app.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/app.go b/app.go index 4122596..59bf68d 100644 --- a/app.go +++ b/app.go @@ -292,8 +292,6 @@ func (a *App) RunContext(ctx context.Context, 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) a.handleExitCoder(context, beforeErr) err = beforeErr return err