cmd/internal/goobj: make error output clear

Change-Id: Ic8510037e5d745f3c9f1b9c203439d3fe2e2d5a5
GitHub-Last-Rev: 4101a1595b
GitHub-Pull-Request: golang/go#74703
Reviewed-on: https://go-review.googlesource.com/c/go/+/689515
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Auto-Submit: Keith Randall <khr@golang.org>
Auto-Submit: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
wingrez 2025-07-22 15:12:58 +00:00 committed by Gopher Robot
parent 44d73dfb4e
commit 5c8624a396

View file

@ -78,7 +78,7 @@ func mkbuiltin(w io.Writer) {
continue continue
} }
if decl.Tok != token.VAR { if decl.Tok != token.VAR {
log.Fatal("unhandled declaration kind", decl.Tok) log.Fatal("unhandled declaration kind: ", decl.Tok)
} }
for _, spec := range decl.Specs { for _, spec := range decl.Specs {
spec := spec.(*ast.ValueSpec) spec := spec.(*ast.ValueSpec)
@ -92,7 +92,7 @@ func mkbuiltin(w io.Writer) {
} }
} }
default: default:
log.Fatal("unhandled decl type", decl) log.Fatal("unhandled decl type: ", decl)
} }
} }