Skip to content

Commit 130c5ec

Browse files
authored
Merge pull request #21 from srvc/qnighy/fail-4.1.1
Use github.com/srvc/fail v4.1.1
2 parents 249f210 + 6b83c27 commit 130c5ec

File tree

7 files changed

+48
-13
lines changed

7 files changed

+48
-13
lines changed

CHANGELOG.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
## Unreleased
2+
3+
## 1.2.0
4+
5+
- [Technically breaking] Use github.com/srvc/fail v4.1.1 https://github.com/srvc/grpc-errors/pull/21
6+
7+
## 1.1.0
8+
9+
- Use go mod instead of dep https://github.com/srvc/grpc-errors/pull/20
10+
11+
## 1.0.0
12+
13+
- [Breaking] Expand error handler interfaces https://github.com/srvc/grpc-errors/pull/11
14+
- Add new error handler for catching reportable errors for unary server https://github.com/srvc/grpc-errors/pull/12
15+
- [Behavioral change] Use codes.Unknown on WithStatusCodeMap when a status code is unknown https://github.com/srvc/grpc-errors/pull/14
16+
- [Behavioral change] Map status code only when grpc/codes.Code has not been set https://github.com/srvc/grpc-errors/pull/15
17+
- [Behavioral change] WithStatusCodeMap: return original error when no code is found https://github.com/srvc/grpc-errors/pull/16
18+
- Add `WithGrpcStatusUnwrapper` https://github.com/srvc/grpc-errors/pull/16
19+
- Add error handler for stream servers https://github.com/srvc/grpc-errors/pull/17
20+
- Move from izumin5210/grpc-errors to srvc/grpc-errors https://github.com/srvc/grpc-errors/pull/19
21+
- [Breaking] Use srvc/fail instead of creasty/apperrors https://github.com/srvc/grpc-errors/pull/18
22+
23+
24+
## 0.2.0
25+
26+
- Add `WithAppErrorHandler` https://github.com/srvc/grpc-errors/pull/7
27+
- [Breaking] Make error handlers receive request contexts https://github.com/srvc/grpc-errors/pull/8
28+
- [Breaking] Add new status code mapper handler impl https://github.com/srvc/grpc-errors/pull/9
29+
- Improve readme https://github.com/srvc/grpc-errors/pull/10
30+
31+
## 0.1.0
32+
33+
Initial release.

go.mod

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ go 1.12
55
require (
66
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b // indirect
77
github.com/golang/protobuf v1.1.0
8-
github.com/pkg/errors v0.8.0 // indirect
9-
github.com/srvc/fail v3.0.0+incompatible
10-
github.com/stretchr/testify v1.3.0 // indirect
8+
github.com/srvc/fail/v4 v4.1.1
119
golang.org/x/net v0.0.0-20180816102801-aaf60122140d
1210
golang.org/x/sync v0.0.0-20190412183630-56d357773e84 // indirect
1311
golang.org/x/sys v0.0.0-20180816055513-1c9583448a9c // indirect

go.sum

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b h1:VKtxabqXZkF25pY9ekf
44
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
55
github.com/golang/protobuf v1.1.0 h1:0iH4Ffd/meGoXqF2lSAhZHt8X+cPgkfn/cb6Cce5Vpc=
66
github.com/golang/protobuf v1.1.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
7-
github.com/pkg/errors v0.8.0 h1:WdK/asTD0HN+q6hsWO3/vpuAkAr+tw6aNJNDFFf0+qw=
8-
github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
7+
github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I=
8+
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
99
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
1010
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
11-
github.com/srvc/fail v3.0.0+incompatible h1:or7UerTqPWiSxOlnEyNF++7z32Y+edWo6K5y1xzr9d0=
12-
github.com/srvc/fail v3.0.0+incompatible/go.mod h1:O6qL3O5sUrJlIh2oGAZ5J9RKGGae3D1U6jMGyzM6RK4=
11+
github.com/srvc/fail/v4 v4.1.1 h1:yJQ7qyoOCMpxv95rnZ2Cv+PraW2YMHJjRQvi+wYzgUs=
12+
github.com/srvc/fail/v4 v4.1.1/go.mod h1:MRvEHBeA6us0y3MbIfpgDc7HgshPP6T8qy7Ut9pfJJ4=
1313
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
14-
github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q=
15-
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
14+
github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk=
15+
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
1616
golang.org/x/net v0.0.0-20180816102801-aaf60122140d h1:211XH5RPVP5tOBkz6xm3/b7KxtjqVf6PYG+evqJpE08=
1717
golang.org/x/net v0.0.0-20180816102801-aaf60122140d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
1818
golang.org/x/sync v0.0.0-20190412183630-56d357773e84 h1:IqXQ59gzdXv58Jmm2xn0tSOR9i6HqroaOFRQ3wR/dJQ=
@@ -25,3 +25,7 @@ google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8 h1:Nw54tB0rB7hY/N0
2525
google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
2626
google.golang.org/grpc v1.14.0 h1:ArxJuB1NWfPY6r9Gp9gqwplT0Ge7nqv9msgu03lHLmo=
2727
google.golang.org/grpc v1.14.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw=
28+
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
29+
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
30+
gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw=
31+
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=

handlers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package grpcerrors
22

33
import (
4-
"github.com/srvc/fail"
4+
"github.com/srvc/fail/v4"
55
"golang.org/x/net/context"
66
"google.golang.org/grpc"
77
"google.golang.org/grpc/codes"

interceptors_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"google.golang.org/grpc/codes"
1111
"google.golang.org/grpc/status"
1212

13-
"github.com/srvc/fail"
13+
"github.com/srvc/fail/v4"
1414
"github.com/srvc/grpc-errors/testing"
1515
)
1616

stream_server_error_handlers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package grpcerrors
22

33
import (
4-
"github.com/srvc/fail"
4+
"github.com/srvc/fail/v4"
55
"golang.org/x/net/context"
66
"google.golang.org/grpc"
77
)

unary_server_error_handlers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package grpcerrors
22

33
import (
4-
"github.com/srvc/fail"
4+
"github.com/srvc/fail/v4"
55
"golang.org/x/net/context"
66
"google.golang.org/grpc"
77
)

0 commit comments

Comments
 (0)