mirror of
https://github.com/golang/go.git
synced 2026-01-29 07:02:05 +03:00
internal/coverage/decodemeta: correct wording in unknown version error
Correct the wording in the error message returned by readFileHeader when
encountering a meta-data file with an unsupported version.
Change-Id: I49be1bb1509ccc64e8384103bd7f19382b536c26
GitHub-Last-Rev: 2ab8e05a21
GitHub-Pull-Request: golang/go#76981
Reviewed-on: https://go-review.googlesource.com/c/go/+/732581
Reviewed-by: Roland Shoemaker <roland@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Than McIntosh <thanm@golang.org>
This commit is contained in:
@@ -75,7 +75,7 @@ func (r *CoverageMetaFileReader) readFileHeader() error {
|
||||
// Vet the version. If this is a meta-data file from the future,
|
||||
// we won't be able to read it.
|
||||
if r.hdr.Version > coverage.MetaFileVersion {
|
||||
return fmt.Errorf("meta-data file withn unknown version %d (expected %d)", r.hdr.Version, coverage.MetaFileVersion)
|
||||
return fmt.Errorf("meta-data file with an unknown version %d (expected %d)", r.hdr.Version, coverage.MetaFileVersion)
|
||||
}
|
||||
|
||||
// Read package offsets for good measure
|
||||
|
||||
Reference in New Issue
Block a user