cmd/internal/goobj: make error output clear

This commit is contained in:
wingrez 2025-07-22 23:04:16 +08:00
parent 86b5ba7310
commit 4101a1595b

View 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)
}
}