mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/asm: fix EOF message on operand parsing errors.
If the parsing of an operand completes but the parser thinks there is more to read, return an "expected end of operand" error message instead of "expected EOF." This also removes extra "asm: " prefixes in error strings since "asm: " is already set as the global log prefix. Fixes #14071 Change-Id: I7d621c1aea529a0eca3bcba032359bd25b3e1080 Reviewed-on: https://go-review.googlesource.com/19731 Reviewed-by: Rob Pike <r@golang.org>
This commit is contained in:
parent
d17727bdb4
commit
45c4ebec5b
5 changed files with 21 additions and 16 deletions
|
|
@ -30,7 +30,7 @@ type Input struct {
|
|||
peekText string
|
||||
}
|
||||
|
||||
// NewInput returns a
|
||||
// NewInput returns an Input from the given path.
|
||||
func NewInput(name string) *Input {
|
||||
return &Input{
|
||||
// include directories: look in source dir, then -I directories.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue