Skip to content
Snippets Groups Projects
Commit c0c2e5bd authored by Daniel Naude's avatar Daniel Naude
Browse files

Add As function from go errors package

parent 809fb167
No related branches found
No related tags found
1 merge request!48Migrate to aws sdk for go v2
...@@ -158,3 +158,7 @@ type Description struct { ...@@ -158,3 +158,7 @@ type Description struct {
type stackTracer interface { type stackTracer interface {
StackTrace() pkg_errors.StackTrace StackTrace() pkg_errors.StackTrace
} }
func As(err error, target any) bool {
return errors.As(err, target)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment