cmd/internal: fix error message

Change-Id: I23421c2c0bd2b3212cdb46efeeaa5e4c5836645c
GitHub-Last-Rev: 85985614ef
GitHub-Pull-Request: golang/go#79202
Reviewed-on: https://go-review.googlesource.com/c/go/+/774180
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
Auto-Submit: Keith Randall <khr@golang.org>
This commit is contained in:
Weixie Cui 2026-05-05 11:56:23 +00:00 committed by Gopher Robot
parent f2b1b38293
commit 8908cc14cc

View file

@ -38,7 +38,7 @@ func DefaultConds() map[string]Cond {
return true, nil
}
if _, ok := syslist.KnownArch[suffix]; !ok {
return false, fmt.Errorf("unrecognized GOOS %q", suffix)
return false, fmt.Errorf("unrecognized GOARCH %q", suffix)
}
return false, nil
})