Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
language: go
go_import_path: aqwari.net/xml
go:
- 1.7
- "1.7"
- "1.8"
- "1.9"
- "1.10"
- "1.11"

notifications:
email:
Expand Down
2 changes: 1 addition & 1 deletion internal/gen/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ func (fn *Function) Decl() (*ast.FuncDecl, error) {
return nil, errors.New("function name unset")
}
if len(fn.body) == 0 {
return nil, fmt.Errorf("function body for %s unset")
return nil, fmt.Errorf("function body for %s unset", fn.name)
}

if fn.godoc != "" {
Expand Down
2 changes: 1 addition & 1 deletion xsd/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ func flattenRef(schema []*xmltree.Element) error {
unpackGroups(doc)
if hasCycle(doc, nil) {
return fmt.Errorf("cycle detected after flattening references "+
"in schema %s:\n%s\n", ns, xmltree.MarshalIndent(doc, "", " "))
"in schema %d:\n%s\n", ns, xmltree.MarshalIndent(doc, "", " "))
}
}
return nil
Expand Down