fixup! remove the possiblity of end-user's seeing deprecation warnings
This commit is contained in:
parent
8e6aa34a12
commit
a5ca09a934
2
app.go
2
app.go
@ -473,7 +473,7 @@ func HandleAction(action interface{}, context *Context) (err error) {
|
||||
// swallowing all panics that may happen when calling an Action func.
|
||||
s := fmt.Sprintf("%v", r)
|
||||
if strings.HasPrefix(s, "reflect: ") && strings.Contains(s, "too many input arguments") {
|
||||
err = NewExitError(fmt.Sprintf("ERROR unknown Action error: %v."), 2)
|
||||
err = NewExitError(fmt.Sprintf("ERROR unknown Action error: %v.", r), 2)
|
||||
} else {
|
||||
panic(r)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user