Skip to content

Commit

Permalink
look for error on cmd.Wait()
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-jfu committed Aug 4, 2023
1 parent 3548e76 commit 50a8ed8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion services/fdb/server/fdbmovedata.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,11 @@ func (s *fdbmovedata) FDBMoveDataWait(ctx context.Context, req *pb.FDBMoveDataWa
s.cmd.Stdout = run.Stdout
s.cmd.Stderr = run.Stderr
s.cmd.Stdin = nil
s.cmd.Wait()

err := s.cmd.Wait()
if err != nil {
return nil, status.Errorf(codes.Internal, "error waiting for fdbmovedata cmd: %v", err)
}

resp := &pb.FDBMoveDataWaitResponse{
Stdout: run.Stdout.Bytes(),
Expand Down

0 comments on commit 50a8ed8

Please sign in to comment.