yazi_shared/strand/error.rs
1use thiserror::Error;
2
3// --- StrandError
4#[derive(Debug, Error)]
5pub enum StrandError {
6 #[error("conversion to OS string failed")]
7 AsOs,
8 #[error("conversion to UTF-8 string failed")]
9 AsUtf8,
10}
11
12impl From<StrandError> for std::io::Error {
13 fn from(err: StrandError) -> Self { Self::other(err) }
14}