Skip to content

Commit

Permalink
server: Return error code if getting netns fails
Browse files Browse the repository at this point in the history
Signed-off-by: Chance Zibolski <chance.zibolski@gmail.com>
  • Loading branch information
chancez committed Apr 28, 2024
1 parent ecceb51 commit 56dc1d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func (s *server) Capture(req *capperpb.CaptureRequest, stream capperpb.Capper_Ca
ctx := stream.Context()
netns, err := s.getNetns(ctx, req)
if err != nil {
return err
return status.Errorf(codes.Internal, "error getting netns: %s", err)
}

conf := capture.Config{
Expand Down

0 comments on commit 56dc1d0

Please sign in to comment.