We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2662236 commit a58d7dcCopy full SHA for a58d7dc
grpc/status/status.go
@@ -11,6 +11,10 @@ func Error(c codes.Code, msg string) error {
11
return extgrpc.WrapWithGrpcCode(errors.New(msg), c)
12
}
13
14
+func Errorf(c codes.Code, format string, args ...interface{}) error {
15
+ return extgrpc.WrapWithGrpcCode(errors.Errorf(format, args...), c)
16
+}
17
+
18
func WrapErr(c codes.Code, msg string, err error) error {
19
return extgrpc.WrapWithGrpcCode(errors.WrapWithDepth(1, err, msg), c)
20
0 commit comments