From bfff643f34da4f8f5da4ae5293d247eb22823edf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20Podg=C3=B3rski?= Date: Mon, 31 Aug 2020 12:16:07 +0200 Subject: [PATCH] Fix error code for PostVDS --- server/grpc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/grpc.go b/server/grpc.go index 5a5b699ef..6ed428772 100644 --- a/server/grpc.go +++ b/server/grpc.go @@ -153,7 +153,7 @@ func (h *GRPCHandler) PostVDS(ctx context.Context, req *pb.PostVDSRequest) (*pb. opts := pilosa.IndexOptions{Keys: req.Keys, TrackExistence: req.TrackExistence} _, err := h.api.CreateIndex(ctx, req.Name, opts) if err != nil { - return nil, err + return nil, errToStatusError(err) } return &pb.PostVDSResponse{}, nil }