Commit 278952c3 authored by Nigel Tao's avatar Nigel Tao

regexp: add a package prefix to error strings.

R=r, r
CC=golang-dev
https://golang.org/cl/4630041
parent c562fbc4
...@@ -87,16 +87,16 @@ func (e Error) String() string { ...@@ -87,16 +87,16 @@ func (e Error) String() string {
// Error codes returned by failures to parse an expression. // Error codes returned by failures to parse an expression.
var ( var (
ErrInternal = Error("internal error") ErrInternal = Error("regexp: internal error")
ErrUnmatchedLpar = Error("unmatched '('") ErrUnmatchedLpar = Error("regexp: unmatched '('")
ErrUnmatchedRpar = Error("unmatched ')'") ErrUnmatchedRpar = Error("regexp: unmatched ')'")
ErrUnmatchedLbkt = Error("unmatched '['") ErrUnmatchedLbkt = Error("regexp: unmatched '['")
ErrUnmatchedRbkt = Error("unmatched ']'") ErrUnmatchedRbkt = Error("regexp: unmatched ']'")
ErrBadRange = Error("bad range in character class") ErrBadRange = Error("regexp: bad range in character class")
ErrExtraneousBackslash = Error("extraneous backslash") ErrExtraneousBackslash = Error("regexp: extraneous backslash")
ErrBadClosure = Error("repeated closure (**, ++, etc.)") ErrBadClosure = Error("regexp: repeated closure (**, ++, etc.)")
ErrBareClosure = Error("closure applies to nothing") ErrBareClosure = Error("regexp: closure applies to nothing")
ErrBadBackslash = Error("illegal backslash escape") ErrBadBackslash = Error("regexp: illegal backslash escape")
) )
const ( const (
......
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