mirror of
https://github.com/golang/go.git
synced 2025-05-31 23:25:39 +00:00
text/scanner: mention package when reporting errors to stderr
Fixes #14166. Change-Id: I325b283a1d53e73a6d862611c446820ab94a161c Reviewed-on: https://go-review.googlesource.com/19622 Reviewed-by: Damien Neil <dneil@google.com>
This commit is contained in:
parent
8fd1634f44
commit
a576e9883c
@ -333,7 +333,7 @@ func (s *Scanner) error(msg string) {
|
||||
if !pos.IsValid() {
|
||||
pos = s.Pos()
|
||||
}
|
||||
fmt.Fprintf(os.Stderr, "%s: %s\n", pos, msg)
|
||||
fmt.Fprintf(os.Stderr, "text/scanner: %s: %s\n", pos, msg)
|
||||
}
|
||||
|
||||
func (s *Scanner) isIdentRune(ch rune, i int) bool {
|
||||
|
Loading…
x
Reference in New Issue
Block a user