Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 739204b

Browse filesBrowse files
committed
Fix revel#343
Removed log statement that causes a lot of unncessary output
1 parent b100f1e commit 739204b
Copy full SHA for 739204b

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Open diff view settings
Collapse file

‎harness/reflect.go‎

Copy file name to clipboardExpand all lines: harness/reflect.go
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ package harness
44
// It catalogs the controllers, their methods, and their arguments.
55

66
import (
7-
"github.com/revel/revel"
87
"go/ast"
98
"go/build"
109
"go/parser"
@@ -14,6 +13,8 @@ import (
1413
"os"
1514
"path/filepath"
1615
"strings"
16+
17+
"github.com/revel/revel"
1718
)
1819

1920
// SourceInfo is the top-level struct containing all extracted information
@@ -720,8 +721,7 @@ func NewTypeExpr(pkgName string, expr ast.Expr) TypeExpr {
720721
e := NewTypeExpr(pkgName, t.Elt)
721722
return TypeExpr{"[]" + e.Expr, e.PkgName, e.pkgIndex + 2, e.Valid}
722723
default:
723-
log.Println("Failed to generate name for field.")
724-
ast.Print(nil, expr)
724+
log.Println("Failed to generate name for field. Make sure the field name is valid.")
725725
}
726726
return TypeExpr{Valid: false}
727727
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.