diff --git a/coordinator/coordapi.go b/coordinator/coordapi.go index 2427b0d3d..a9d79ca29 100644 --- a/coordinator/coordapi.go +++ b/coordinator/coordapi.go @@ -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 { @@ -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{ @@ -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{ diff --git a/coordinator/intercom.go b/coordinator/intercom.go index 85084ea73..3b3445998 100644 --- a/coordinator/intercom.go +++ b/coordinator/intercom.go @@ -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()