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 <iant@golang.org>
This commit is contained in:
David Brophy 2016-02-06 21:43:52 +01:00 committed by Ian Lance Taylor
parent 3d26f6847a
commit e740c56c6b

View File

@ -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]