]> Cypherpunks repositories - gostls13.git/commit
go/ast: fix formatting of error message
authorDmitry Vyukov <dvyukov@google.com>
Sat, 2 May 2015 11:47:27 +0000 (14:47 +0300)
committerDmitry Vyukov <dvyukov@google.com>
Sat, 2 May 2015 14:54:32 +0000 (14:54 +0000)
commit172f27652e4e2e8c8f6f5f22cab7aa5542d38651
treea4aae7698c233202a11cb49a2f0aa96831ba0b63
parentfbb4c7454ba49e14557f58030e4793f3ca6fadfe
go/ast: fix formatting of error message

There are three problems:
1. There is no CR at the end of the message.
2. The message is unconditionally printed.
3. The message is printed to stdout.

Change-Id: Ib2d880eea03348e8a69720aad7752302a75bd277
Reviewed-on: https://go-review.googlesource.com/9622
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/go/ast/walk.go