diff options
-rw-r--r-- | src/error.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs index c5b7543..2499150 100644 --- a/src/error.rs +++ b/src/error.rs @@ -169,6 +169,7 @@ impl From<Error> for io::Error { fn from(err: Error) -> io::Error { let kind = match err.code { raw::LIBSSH2_ERROR_EAGAIN => io::ErrorKind::WouldBlock, + raw::LIBSSH2_ERROR_TIMEOUT => io::ErrorKind::TimedOut, _ => io::ErrorKind::Other, }; io::Error::new(kind, err.msg) |