diff --git a/pilota/src/thrift/error/mod.rs b/pilota/src/thrift/error/mod.rs index 8af389e..3669bf0 100644 --- a/pilota/src/thrift/error/mod.rs +++ b/pilota/src/thrift/error/mod.rs @@ -54,7 +54,7 @@ impl From for ThriftException { impl From for ThriftException { fn from(e: std::io::Error) -> Self { - e.into() + ThriftException::Transport(TransportException::from(e)) } }