Skip to content

Commit

Permalink
coordinator: fix err formatter in grpc status
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Meyer <[email protected]>
  • Loading branch information
katexochen committed Jan 9, 2024
1 parent aa30949 commit 6ca34da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions coordinator/coordapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func (s *coordAPIServer) SetManifest(_ context.Context, req *coordapi.SetManifes

var m *manifest.Manifest
if err := json.Unmarshal(req.Manifest, &m); err != nil {
return nil, status.Errorf(codes.InvalidArgument, "unmarshaling manifest: %s", err)
return nil, status.Errorf(codes.InvalidArgument, "unmarshaling manifest: %v", err)
}

for _, policyBytes := range req.Policies {
Expand All @@ -73,7 +73,7 @@ func (s *coordAPIServer) SetManifest(_ context.Context, req *coordapi.SetManifes
}

if err := s.manifSetGetter.SetManifest(m); err != nil {
return nil, status.Errorf(codes.Internal, "setting manifest: %s", err)
return nil, status.Errorf(codes.Internal, "setting manifest: %v", err)
}

resp := &coordapi.SetManifestResponse{
Expand All @@ -96,7 +96,7 @@ func (s *coordAPIServer) GetManifests(_ context.Context, _ *coordapi.GetManifest

manifestBytes, err := manifestSliceToBytesSlice(manifests)
if err != nil {
return nil, status.Errorf(codes.Internal, "marshaling manifests: %s", err)
return nil, status.Errorf(codes.Internal, "marshaling manifests: %v", err)
}

resp := &coordapi.GetManifestsResponse{
Expand Down
2 changes: 1 addition & 1 deletion coordinator/intercom.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func (i *intercomServer) NewMeshCert(_ context.Context, req *intercom.NewMeshCer
cert, err := i.certGet.GetCert(req.PeerPublicKeyHash)
if err != nil {
return nil, status.Errorf(codes.Internal,
"getting certificate with public key hash %q: %s", req.PeerPublicKeyHash, err)
"getting certificate with public key hash %q: %v", req.PeerPublicKeyHash, err)
}

meshCACert := i.caChainGetter.GetMeshCACert()
Expand Down

0 comments on commit 6ca34da

Please sign in to comment.