Merge pull request #2747 from fuweid/bugfix_wrap_error_in_closeIO

bugfix: CloseIO should return correct status code
This commit is contained in:
Michael Crosby
2018-10-29 11:25:37 -04:00
committed by GitHub

View File

@@ -460,7 +460,7 @@ func (l *local) CloseIO(ctx context.Context, r *api.CloseIORequest, _ ...grpc.Ca
}
if r.Stdin {
if err := p.CloseIO(ctx); err != nil {
return nil, err
return nil, errdefs.ToGRPC(err)
}
}
return empty, nil