diff options
author | David Brophy <dave@brophy.uk> | 2016-02-06 21:43:52 +0100 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2016-03-08 18:20:19 +0000 |
commit | e740c56c6b632f5de23904ba803740a7e229915a (patch) | |
tree | db79629b01707bcb3cac1deb073d759120b79a96 /cover | |
parent | 3d26f6847a824a26211a433ba4b7813cebd768c9 (diff) | |
download | golang-x-tools-e740c56c6b632f5de23904ba803740a7e229915a.tar.gz |
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>
Diffstat (limited to 'cover')
-rw-r--r-- | cover/profile.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cover/profile.go b/cover/profile.go index a53bf4ea2..958881a2a 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] |