Skip to content

Commit

Permalink
Reframe error
Browse files Browse the repository at this point in the history
  • Loading branch information
brotherlogic committed Apr 11, 2024
1 parent 3b46093 commit f1fc561
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package rstore_client

import (
"context"
"fmt"

pb "github.com/brotherlogic/rstore/proto"
"google.golang.org/grpc"
Expand All @@ -24,7 +25,7 @@ func GetClient() (RStoreClient, error) {
grpc.WithTransportCredentials(insecure.NewCredentials()),
grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(100*1024*1024)))
if err != nil {
return nil, err
return nil, fmt.Errorf("dial error on %v -> %w", "rstore.rstore:8080", err)
}
return &rClient{gClient: pb.NewRStoreServiceClient(conn)}, nil
}
Expand Down

0 comments on commit f1fc561

Please sign in to comment.