MCPcopy
hub / github.com/grafana/dskit / FailWithHTTPError

Method FailWithHTTPError

server/server_test.go:51–53  ·  view source on GitHub ↗
(_ context.Context, req *FailWithHTTPErrorRequest)

Source from the content-addressed store, hash-verified

49}
50
51func (f FakeServer) FailWithHTTPError(_ context.Context, req *FailWithHTTPErrorRequest) (*emptypb.Empty, error) {
52 return nil, httpgrpc.Errorf(int(req.Code), "%d", req.Code)
53}
54
55func (f FakeServer) Succeed(_ context.Context, _ *emptypb.Empty) (*emptypb.Empty, error) {
56 return &emptypb.Empty{}, nil

Callers

nothing calls this directly

Calls 1

ErrorfFunction · 0.92

Tested by

no test coverage detected