Skip to content

Commit

Permalink
fix errors.As issue (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
deankarn committed May 31, 2022
1 parent b313774 commit de0ef09
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [5.2.3] - 2022-05-30
### Fixed
- Fixed errors.As wrapper, linter is wrong.

## [5.2.2] - 2022-05-30
### Fixed
- Fixed calling error helpers on first wrap only, where the source of the data will be.
Expand All @@ -25,7 +29,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Updated deps.


[Unreleased]: https://github.com/go-playground/errors/compare/v5.2.2...HEAD
[Unreleased]: https://github.com/go-playground/errors/compare/v5.2.3...HEAD
[5.2.3]: https://github.com/go-playground/errors/compare/v5.2.2...v5.2.3
[5.2.2]: https://github.com/go-playground/errors/compare/v5.2.1...v5.2.2
[5.2.1]: https://github.com/go-playground/errors/compare/v5.2.0...v5.2.1
[5.2.0]: https://github.com/go-playground/errors/compare/v5.1.1...v5.2.0
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package errors
============
![Project status](https://img.shields.io/badge/version-5.2.2-green.svg)
![Project status](https://img.shields.io/badge/version-5.2.3-green.svg)
[![Build Status](https://travis-ci.org/go-playground/errors.svg?branch=master)](https://travis-ci.org/go-playground/errors)
[![Go Report Card](https://goreportcard.com/badge/github.com/go-playground/errors)](https://goreportcard.com/report/github.com/go-playground/errors)
[![GoDoc](https://godoc.org/github.com/go-playground/errors?status.svg)](https://pkg.go.dev/github.com/go-playground/errors/v5)
Expand Down
2 changes: 1 addition & 1 deletion errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,5 +186,5 @@ func Is(err, target error) bool {
// As panics if target is not a non-nil pointer to either a type that implements
// error, or to any interface type.
func As(err error, target any) bool {
return stderrors.As(err, &target)
return stderrors.As(err, target)
}

0 comments on commit de0ef09

Please sign in to comment.