mirror of
https://github.com/kevin-DL/revel-cmd.git
synced 2026-01-22 15:05:26 +00:00
Improve warning message when unable to generate route for action.
This commit is contained in:
@@ -433,7 +433,8 @@ func appendAction(fset *token.FileSet, mm methodMap, decl ast.Decl, pkgImportPat
|
|||||||
var importPath string
|
var importPath string
|
||||||
typeExpr := NewTypeExpr(pkgName, field.Type)
|
typeExpr := NewTypeExpr(pkgName, field.Type)
|
||||||
if !typeExpr.Valid {
|
if !typeExpr.Valid {
|
||||||
return // We didn't understand one of the args. Ignore this action. (Already logged)
|
log.Printf("Didn't understand argument '%s' of action %s. Ignoring.\n", name, getFuncName(funcDecl))
|
||||||
|
return // We didn't understand one of the args. Ignore this action.
|
||||||
}
|
}
|
||||||
if typeExpr.PkgName != "" {
|
if typeExpr.PkgName != "" {
|
||||||
var ok bool
|
var ok bool
|
||||||
|
|||||||
Reference in New Issue
Block a user