From 6ca34dae4994f5fec7bc6f83df2b7ad0ae2e5466 Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Mon, 8 Jan 2024 17:56:21 +0100 Subject: [PATCH] coordinator: fix err formatter in grpc status Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- coordinator/coordapi.go | 6 +++--- coordinator/intercom.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/coordinator/coordapi.go b/coordinator/coordapi.go index 2427b0d3dc..a9d79ca29c 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 85084ea731..3b34459988 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()