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
commit 35a32a8778
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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