Fix #376 NewExitError not working, reflect vals[0] cast to Interface() was missing

This commit is contained in:
Gert-Jan Timmer 2016-05-02 17:06:14 +02:00
parent ff84ca213d
commit a90e2e4ff1

2
app.go
View File

@ -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
}