Commit d6c69dc6 authored by Robert Griesemer's avatar Robert Griesemer

go/scanner: don't print garbage if there's no error

R=r
CC=golang-dev
https://golang.org/cl/6489059
parent 363ec80d
......@@ -120,7 +120,7 @@ func PrintError(w io.Writer, err error) {
for _, e := range list {
fmt.Fprintf(w, "%s\n", e)
}
} else {
} else if err != nil {
fmt.Fprintf(w, "%s\n", err)
}
}
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