testing: fix error message on invalid regexp

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/3831041
diff --git a/src/pkg/testing/benchmark.go b/src/pkg/testing/benchmark.go
index d82007e..ad93802 100644
--- a/src/pkg/testing/benchmark.go
+++ b/src/pkg/testing/benchmark.go
@@ -175,7 +175,7 @@
 	for _, Benchmark := range benchmarks {
 		matched, err := matchString(*matchBenchmarks, Benchmark.Name)
 		if err != nil {
-			println("invalid regexp for -benchmarks:", err)
+			println("invalid regexp for -benchmarks:", err.String())
 			os.Exit(1)
 		}
 		if !matched {
diff --git a/src/pkg/testing/testing.go b/src/pkg/testing/testing.go
index ae6d034..0e04935 100644
--- a/src/pkg/testing/testing.go
+++ b/src/pkg/testing/testing.go
@@ -144,7 +144,7 @@
 	for i := 0; i < len(tests); i++ {
 		matched, err := matchString(*match, tests[i].Name)
 		if err != nil {
-			println("invalid regexp for -match:", err)
+			println("invalid regexp for -match:", err.String())
 			os.Exit(1)
 		}
 		if !matched {