Commit 2a9c0124 authored by Robert Griesemer's avatar Robert Griesemer

godoc: log node printing error

Invaluable when changing template files.

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/5571044
parent 5fde5cd5
...@@ -378,7 +378,10 @@ func writeNode(w io.Writer, fset *token.FileSet, x interface{}) { ...@@ -378,7 +378,10 @@ func writeNode(w io.Writer, fset *token.FileSet, x interface{}) {
// with an another printer mode (which is more efficiently // with an another printer mode (which is more efficiently
// implemented in the printer than here with another layer) // implemented in the printer than here with another layer)
mode := printer.TabIndent | printer.UseSpaces 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 { func filenameFunc(path string) string {
......
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