aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/internal
diff options
context:
space:
mode:
authorwingrez <wingrez@126.com>2025-07-22 15:12:58 +0000
committerGopher Robot <gobot@golang.org>2025-07-24 10:03:21 -0700
commit5c8624a396d1c0aa4f436d17044330bc931d5fbd (patch)
treedda5a1e23cf6ff7e467bdb7eb26d2ed4561fb448 /src/cmd/internal
parent44d73dfb4e5f80998dc0276e239e3e860c8d9e91 (diff)
downloadgo-5c8624a396d1c0aa4f436d17044330bc931d5fbd.tar.xz
cmd/internal/goobj: make error output clear
Change-Id: Ic8510037e5d745f3c9f1b9c203439d3fe2e2d5a5 GitHub-Last-Rev: 4101a1595bd542bec8c20e4332c884125ee57aff 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>
Diffstat (limited to 'src/cmd/internal')
-rw-r--r--src/cmd/internal/goobj/mkbuiltin.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/internal/goobj/mkbuiltin.go b/src/cmd/internal/goobj/mkbuiltin.go
index 9a6ad8c8c1..6d1e7bb429 100644
--- a/src/cmd/internal/goobj/mkbuiltin.go
+++ b/src/cmd/internal/goobj/mkbuiltin.go
@@ -78,7 +78,7 @@ func mkbuiltin(w io.Writer) {
continue
}
if decl.Tok != token.VAR {
- log.Fatal("unhandled declaration kind", decl.Tok)
+ log.Fatal("unhandled declaration kind: ", decl.Tok)
}
for _, spec := range decl.Specs {
spec := spec.(*ast.ValueSpec)
@@ -92,7 +92,7 @@ func mkbuiltin(w io.Writer) {
}
}
default:
- log.Fatal("unhandled decl type", decl)
+ log.Fatal("unhandled decl type: ", decl)
}
}