Skip to content

Commit

Permalink
Merge pull request #8 from morikuni/update-failure
Browse files Browse the repository at this point in the history
Update failure
  • Loading branch information
morikuni authored Apr 8, 2024
2 parents 062b2c5 + c49959e commit 8779f46
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ go 1.20

require golang.org/x/text v0.9.0

require github.com/morikuni/failure/v2 v2.0.0-20230512003104-6bb497ead261
require github.com/morikuni/failure/v2 v2.0.0-20240407145138-d0020a5003d2

require golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1 // indirect
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
github.com/morikuni/failure/v2 v2.0.0-20230512003104-6bb497ead261 h1:Rqq1Kh/HMFt8YZFeW5jopA+l2wjV2+tMcouxbwuMxqs=
github.com/morikuni/failure/v2 v2.0.0-20230512003104-6bb497ead261/go.mod h1:tHod902kOvu2+09OAbzPMrE4B8fIc+M/2kl/UI3mDQI=
github.com/morikuni/failure/v2 v2.0.0-20240407145138-d0020a5003d2 h1:TAkI7cXmMnSuuVs1J7Xm9+vGaw649eEVUTz193HyZS4=
github.com/morikuni/failure/v2 v2.0.0-20240407145138-d0020a5003d2/go.mod h1:tHod902kOvu2+09OAbzPMrE4B8fIc+M/2kl/UI3mDQI=
golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1 h1:k/i9J1pBpvlfR+9QsetwPyERsqu1GIbi967PQMq3Ivc=
golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1/go.mod h1:V1LtkGg67GoY2N1AnLN78QLrzxkLyJw7RJb1gzOOz9w=
golang.org/x/text v0.9.0 h1:2sjJmO8cDvYveuX97RDLsxlyUxLl+GHoLxBiRdHllBE=
Expand Down
2 changes: 1 addition & 1 deletion mlang.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (d Dict[M]) SetErrorField(field failure.FieldSetter) {
}

// FormatError implements failure.ErrorFormatter.
func (d Dict[M]) FormatError(w io.Writer) {
func (d Dict[M]) FormatError(w failure.ErrorWriter) {
_, _ = io.WriteString(w, d.String()) // Randomly picked language is used.
}

Expand Down

0 comments on commit 8779f46

Please sign in to comment.