summaryrefslogtreecommitdiff
path: root/vendor/codeberg.org/gruf/go-errors/v2/errors.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/codeberg.org/gruf/go-errors/v2/errors.go')
-rw-r--r--vendor/codeberg.org/gruf/go-errors/v2/errors.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/vendor/codeberg.org/gruf/go-errors/v2/errors.go b/vendor/codeberg.org/gruf/go-errors/v2/errors.go
index 18f780994..2c4689151 100644
--- a/vendor/codeberg.org/gruf/go-errors/v2/errors.go
+++ b/vendor/codeberg.org/gruf/go-errors/v2/errors.go
@@ -1,6 +1,7 @@
package errors
import (
+ "errors"
"fmt"
)
@@ -29,7 +30,7 @@ func Stacktrace(err error) Callers {
var e interface {
Stacktrace() Callers
}
- if !As(err, &e) {
+ if !errors.As(err, &e) {
return nil
}
return e.Stacktrace()