mirror of
https://github.com/golang/go
synced 2024-11-21 22:34:48 -07:00
godoc: log node printing error
Invaluable when changing template files. R=golang-dev, adg CC=golang-dev https://golang.org/cl/5571044
This commit is contained in:
parent
5fde5cd5cb
commit
2a9c012498
@ -378,7 +378,10 @@ func writeNode(w io.Writer, fset *token.FileSet, x interface{}) {
|
||||
// with an another printer mode (which is more efficiently
|
||||
// implemented in the printer than here with another layer)
|
||||
mode := printer.TabIndent | printer.UseSpaces
|
||||
(&printer.Config{mode, *tabwidth}).Fprint(&tconv{output: w}, fset, x)
|
||||
err := (&printer.Config{mode, *tabwidth}).Fprint(&tconv{output: w}, fset, x)
|
||||
if err != nil {
|
||||
log.Print(err)
|
||||
}
|
||||
}
|
||||
|
||||
func filenameFunc(path string) string {
|
||||
|
Loading…
Reference in New Issue
Block a user