From e740c56c6b632f5de23904ba803740a7e229915a Mon Sep 17 00:00:00 2001 From: David Brophy Date: Sat, 6 Feb 2016 21:43:52 +0100 Subject: [PATCH] cover: fixed broken error message The error message is attempting to display the line of text, but was incorrectly using m (which is always nil) instead of line. Change-Id: Id09f488b3b7b0e8c3c2cb6e8f0a8d635861c77ac Reviewed-on: https://go-review.googlesource.com/19330 Reviewed-by: Ian Lance Taylor --- cover/profile.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cover/profile.go b/cover/profile.go index a53bf4ea..958881a2 100644 --- a/cover/profile.go +++ b/cover/profile.go @@ -66,7 +66,7 @@ func ParseProfiles(fileName string) ([]*Profile, error) { } m := lineRe.FindStringSubmatch(line) if m == nil { - return nil, fmt.Errorf("line %q doesn't match expected format: %v", m, lineRe) + return nil, fmt.Errorf("line %q doesn't match expected format: %v", line, lineRe) } fn := m[1] p := files[fn]