From: wingrez Date: Tue, 22 Jul 2025 15:12:58 +0000 (+0000) Subject: cmd/internal/goobj: make error output clear X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=5c8624a396d1c0aa4f436d17044330bc931d5fbd;p=gostls13.git 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 Reviewed-by: Keith Randall Reviewed-by: Keith Randall Auto-Submit: Keith Randall Auto-Submit: Michael Knyszek LUCI-TryBot-Result: Go LUCI --- 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) } }