mirror of
https://github.com/golang/go
synced 2024-11-19 17:04:41 -07:00
regexp: add a package prefix to error strings.
R=r, r CC=golang-dev https://golang.org/cl/4630041
This commit is contained in:
parent
c562fbc44e
commit
278952c393
@ -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 (
|
||||||
|
Loading…
Reference in New Issue
Block a user