Fix error code for DeleteVDS

This commit is contained in:
Kuba Podgórski 2020-08-31 12:14:58 +02:00
parent bf17385409
commit f7a0e5f536

View file

@ -162,7 +162,7 @@ func (h *GRPCHandler) PostVDS(ctx context.Context, req *pb.PostVDSRequest) (*pb.
func (h *GRPCHandler) DeleteVDS(ctx context.Context, req *pb.DeleteVDSRequest) (*pb.DeleteVDSResponse, error) {
err := h.api.DeleteIndex(ctx, req.Name)
if err != nil {
return nil, err
return nil, errToStatusError(err)
}
return &pb.DeleteVDSResponse{}, nil
}