Skip to content

Commit 4fc17f8

Browse files
authored
Merge pull request #161 from cockroachdb/davidh/add-errunsupported
errors: re-export ErrUnsupported from stdlib
2 parents d643ae2 + 41eb805 commit 4fc17f8

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

errutil_api.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,19 @@
1515
package errors
1616

1717
import (
18+
"errors"
19+
1820
"github.com/cockroachdb/errors/barriers"
1921
"github.com/cockroachdb/errors/errbase"
2022
"github.com/cockroachdb/errors/errutil"
2123
)
2224

25+
// ErrUnsupported indicates that a requested operation cannot be
26+
// performed, because it is unsupported. This is the same value as
27+
// the standard library's errors.ErrUnsupported, re-exported here
28+
// for drop-in compatibility.
29+
var ErrUnsupported = errors.ErrUnsupported
30+
2331
// New creates an error with a simple error message.
2432
// A stack trace is retained.
2533
//

0 commit comments

Comments
 (0)