Commit 5f5a7eb4 authored by Roger Peppe's avatar Roger Peppe Committed by Robert Griesemer

go test: don't try to print package with error message.

If there's a error compiling a _test.go file, the error
message tries to print a *Package with %s. There's no String
method on *Package, so the error message looks bad.
Since the error messages identify the file in question
anyway, this CL removes the package from the error message.

R=rsc, gri
CC=golang-dev
https://golang.org/cl/5520045
parent 149d3f06
......@@ -228,7 +228,7 @@ func runTest(cmd *Command, args []string) {
for _, p := range pkgs {
buildTest, runTest, err := b.test(p)
if err != nil {
errorf("%s: %s", p, err)
errorf("%s", err)
continue
}
builds = append(builds, buildTest)
......
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