diff options
author | Nigel Tao <nigeltao@golang.org> | 2011-06-17 10:50:38 +1000 |
---|---|---|
committer | Nigel Tao <nigeltao@golang.org> | 2011-06-17 10:50:38 +1000 |
commit | 278952c393387290ad43c028b54888329438936c (patch) | |
tree | dd45a7b44753981396dc6c05f5298c43e23d2774 | |
parent | c562fbc44e1e04ccf1f99d736075f19305d43057 (diff) | |
download | go-278952c393387290ad43c028b54888329438936c.tar.gz go-278952c393387290ad43c028b54888329438936c.zip |
regexp: add a package prefix to error strings.
R=r, r
CC=golang-dev
https://golang.org/cl/4630041
-rw-r--r-- | src/pkg/regexp/regexp.go | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/pkg/regexp/regexp.go b/src/pkg/regexp/regexp.go index e3221ac9d6..44da8b6710 100644 --- a/src/pkg/regexp/regexp.go +++ b/src/pkg/regexp/regexp.go @@ -87,16 +87,16 @@ func (e Error) String() string { // Error codes returned by failures to parse an expression. var ( - ErrInternal = Error("internal error") - ErrUnmatchedLpar = Error("unmatched '('") - ErrUnmatchedRpar = Error("unmatched ')'") - ErrUnmatchedLbkt = Error("unmatched '['") - ErrUnmatchedRbkt = Error("unmatched ']'") - ErrBadRange = Error("bad range in character class") - ErrExtraneousBackslash = Error("extraneous backslash") - ErrBadClosure = Error("repeated closure (**, ++, etc.)") - ErrBareClosure = Error("closure applies to nothing") - ErrBadBackslash = Error("illegal backslash escape") + ErrInternal = Error("regexp: internal error") + ErrUnmatchedLpar = Error("regexp: unmatched '('") + ErrUnmatchedRpar = Error("regexp: unmatched ')'") + ErrUnmatchedLbkt = Error("regexp: unmatched '['") + ErrUnmatchedRbkt = Error("regexp: unmatched ']'") + ErrBadRange = Error("regexp: bad range in character class") + ErrExtraneousBackslash = Error("regexp: extraneous backslash") + ErrBadClosure = Error("regexp: repeated closure (**, ++, etc.)") + ErrBareClosure = Error("regexp: closure applies to nothing") + ErrBadBackslash = Error("regexp: illegal backslash escape") ) const ( |