Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(559)

Unified Diff: src/pkg/testing/testing.go

Issue 3831041: code review 3831041: testing: fix error message on invalid regexp (Closed)
Patch Set: code review 3831041: testing: fix error message on invalid regexp Created 13 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/pkg/testing/benchmark.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pkg/testing/testing.go
===================================================================
--- 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 {
« no previous file with comments | « src/pkg/testing/benchmark.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b