mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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
1 changed files with 10 additions and 10 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue