MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / GRPCStatus

Method GRPCStatus

app/cli/main.go:73–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71 // To do what we perform an additional parsing of the error similar to
72 // https://github.com/grpc/grpc-go/blob/ced812e3287e15a009eab5b271c25750050a2f82/status/status.go#L123
73 type grpcstatus interface{ GRPCStatus() *status.Status }
74 var gs grpcstatus
75 if errors.As(err, &gs) {
76 knownCodes := []codes.Code{

Callers 4

errorInfoFunction · 0.95
handleUseCaseErrFunction · 0.80
toGRPCStatusFunction · 0.80

Calls

no outgoing calls

Tested by 2

toGRPCStatusFunction · 0.64