Skip to content

Commit

Permalink
change return error value
Browse files Browse the repository at this point in the history
This way it is consistent with `asyncify`
  • Loading branch information
BraulioVM committed Jan 24, 2022
1 parent e3e3da8 commit eef3dd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tokio/src/fs/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ impl AsyncWrite for File {
(Operation::Write(res), buf)
})
.ok_or_else(|| {
std::io::Error::new(std::io::ErrorKind::Other, "runtime was shutting down")
io::Error::new(io::ErrorKind::Other, "background task failed")
})?;

inner.state = Busy(blocking_task_join_handle);
Expand Down

0 comments on commit eef3dd4

Please sign in to comment.