fixup! remove the possiblity of end-user's seeing deprecation warnings

This commit is contained in:
Jesse Szwedko 2016-08-21 14:06:59 -07:00
parent 8e6aa34a12
commit a5ca09a934

2
app.go
View File

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