Fix #376 NewExitError not working, reflect vals[0] cast to Interface() was missing
This commit is contained in:
parent
ff84ca213d
commit
a90e2e4ff1
2
app.go
2
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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user