aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/go/scanner/errors.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/go/scanner/errors.go')
-rw-r--r--libgo/go/go/scanner/errors.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/go/scanner/errors.go b/libgo/go/go/scanner/errors.go
index 8a75a9650..22de69c3c 100644
--- a/libgo/go/go/scanner/errors.go
+++ b/libgo/go/go/scanner/errors.go
@@ -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)
}
}