From a90e2e4ff1f110ff75b7a12d43df6328bf4cc134 Mon Sep 17 00:00:00 2001 From: Gert-Jan Timmer Date: Mon, 2 May 2016 17:06:14 +0200 Subject: [PATCH] Fix #376 NewExitError not working, reflect vals[0] cast to Interface() was missing --- app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.go b/app.go index a5b0aa3..76ab2f2 100644 --- a/app.go +++ b/app.go @@ -438,7 +438,7 @@ func HandleAction(action interface{}, context *Context) (err error) { return errInvalidActionSignature } - if retErr, ok := reflect.ValueOf(vals[0]).Interface().(error); ok { + if retErr, ok := reflect.ValueOf(vals[0].Interface()).Interface().(error); ok { return retErr }