mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
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:
parent
3d26f6847a
commit
e740c56c6b
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user