]> Cypherpunks repositories - gostls13.git/commitdiff
text/scanner: mention package when reporting errors to stderr
authorRobert Griesemer <gri@golang.org>
Thu, 18 Feb 2016 19:43:52 +0000 (11:43 -0800)
committerRobert Griesemer <gri@golang.org>
Thu, 18 Feb 2016 19:46:51 +0000 (19:46 +0000)
Fixes #14166.

Change-Id: I325b283a1d53e73a6d862611c446820ab94a161c
Reviewed-on: https://go-review.googlesource.com/19622
Reviewed-by: Damien Neil <dneil@google.com>
src/text/scanner/scanner.go

index 0155800f34a716d43352b3ca206c9c5f30fc69ae..dd87850fcd3538bf870cd45a1edd3ba864dc37d5 100644 (file)
@@ -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 {