mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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:
parent
44d73dfb4e
commit
5c8624a396
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue