Skip to content

Commit

Permalink
text/scanner: mention package when reporting errors to stderr
Browse files Browse the repository at this point in the history
Fixes #14166.

Change-Id: I325b283a1d53e73a6d862611c446820ab94a161c
Reviewed-on: https://go-review.googlesource.com/19622
Reviewed-by: Damien Neil <dneil@google.com>
  • Loading branch information
griesemer committed Feb 18, 2016
1 parent 8fd1634 commit a576e98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/text/scanner/scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a576e98

Please sign in to comment.