Merge pull request #2747 from fuweid/bugfix_wrap_error_in_closeIO
bugfix: CloseIO should return correct status code
This commit is contained in:
commit
35a32a8778
@ -460,7 +460,7 @@ func (l *local) CloseIO(ctx context.Context, r *api.CloseIORequest, _ ...grpc.Ca
|
|||||||
}
|
}
|
||||||
if r.Stdin {
|
if r.Stdin {
|
||||||
if err := p.CloseIO(ctx); err != nil {
|
if err := p.CloseIO(ctx); err != nil {
|
||||||
return nil, err
|
return nil, errdefs.ToGRPC(err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return empty, nil
|
return empty, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user