]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/internal/goobj: make error output clear
authorwingrez <wingrez@126.com>
Tue, 22 Jul 2025 15:12:58 +0000 (15:12 +0000)
committerGopher Robot <gobot@golang.org>
Thu, 24 Jul 2025 17:03:21 +0000 (10:03 -0700)
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>

src/cmd/internal/goobj/mkbuiltin.go

index 9a6ad8c8c1c81c286ee1741271921092875073cd..6d1e7bb4297ac5bb710c8c9070654ea4f1c0fa87 100644 (file)
@@ -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)
                }
        }