diff --git a/src/lib.rs b/src/lib.rs index 1b3119c4..06fd30f5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -327,7 +327,7 @@ where alert, // TODO(eliza): should this really return an `io::Error`? // Probably not... - error: io::Error::new(io::ErrorKind::Other, error), + error: io::Error::new(io::ErrorKind::InvalidData, error), }); } };