Commit a576e988 authored by Robert Griesemer's avatar Robert Griesemer

text/scanner: mention package when reporting errors to stderr

Fixes #14166.

Change-Id: I325b283a1d53e73a6d862611c446820ab94a161c
Reviewed-on: https://go-review.googlesource.com/19622Reviewed-by: default avatarDamien Neil <dneil@google.com>
parent 8fd1634f
......@@ -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 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment