diff --git a/proxmox-lang/src/error.rs b/proxmox-lang/src/error.rs index 70d3d926..6dbefac6 100644 --- a/proxmox-lang/src/error.rs +++ b/proxmox-lang/src/error.rs @@ -6,6 +6,7 @@ use std::io; /// Helper to convert non-system-errors into an `io::Error` or `io::ErrorKind::Other`. /// /// A more convenient way is to use the `io_format_err!` macro. +#[deprecated = "use std::io::Error::other instead to box the original error"] pub fn io_err_other(e: E) -> io::Error { io::Error::new(std::io::ErrorKind::Other, e.to_string()) }