go/packages: change ParserError to ParseError
Correct minor typo from https://go-review.googlesource.com/c/tools/+/139317/3. Change-Id: I76b661fbe136914b903011990e48c74563115ae6 Reviewed-on: https://go-review.googlesource.com/139318 Reviewed-by: Michael Matloob <matloob@golang.org>
This commit is contained in:
parent
71dfda0503
commit
8e930c1793
|
@ -251,7 +251,7 @@ type ErrorKind int
|
|||
const (
|
||||
UnknownError ErrorKind = iota
|
||||
ListError
|
||||
ParserError
|
||||
ParseError
|
||||
TypeError
|
||||
)
|
||||
|
||||
|
@ -587,7 +587,7 @@ func (ld *loader) loadPackage(lpkg *loaderPackage) {
|
|||
errs = append(errs, Error{
|
||||
Pos: err.Path + ":1",
|
||||
Msg: err.Err.Error(),
|
||||
Kind: ParserError,
|
||||
Kind: ParseError,
|
||||
})
|
||||
|
||||
case scanner.ErrorList:
|
||||
|
@ -596,7 +596,7 @@ func (ld *loader) loadPackage(lpkg *loaderPackage) {
|
|||
errs = append(errs, Error{
|
||||
Pos: err.Pos.String(),
|
||||
Msg: err.Msg,
|
||||
Kind: ParserError,
|
||||
Kind: ParseError,
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue