mirror of
https://github.com/golang/go.git
synced 2026-02-06 19:05:05 +03:00
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:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user