Commit 9dcf3eee authored by Robert Griesemer's avatar Robert Griesemer

cmd/godoc: better console error message for example error

(per r's suggestion)

R=r
CC=golang-dev
https://golang.org/cl/7376045
parent 55ad7b9b
......@@ -959,7 +959,7 @@ func collectExamples(pkg *ast.Package, testfiles map[string]*ast.File) []*doc.Ex
if name == "" || globals[name] {
examples = append(examples, e)
} else {
log.Printf("skipping example Example%s: refers to unknown function or type", e.Name)
log.Printf("skipping example 'Example%s' because '%s' is not a known function or type", e.Name, e.Name)
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment