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