use io::Error::other
This commit is contained in:
parent
9d2e9e38bd
commit
7285c29e88
1 changed files with 1 additions and 4 deletions
|
@ -150,10 +150,7 @@ impl Stream for AsyncWriteAdapter {
|
||||||
match message {
|
match message {
|
||||||
Data(v) => Poll::Ready(Some(Ok(v.into()))),
|
Data(v) => Poll::Ready(Some(Ok(v.into()))),
|
||||||
Error(exception) => {
|
Error(exception) => {
|
||||||
let error = std::io::Error::new(
|
let error = std::io::Error::other(format!("cxx error: {exception}"));
|
||||||
io::ErrorKind::Other,
|
|
||||||
format!("cxx error: {exception}"),
|
|
||||||
);
|
|
||||||
Poll::Ready(Some(Err(error)))
|
Poll::Ready(Some(Err(error)))
|
||||||
}
|
}
|
||||||
Eof => {
|
Eof => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue