mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-05 14:11:32 +00:00
implement squashfs generation
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
use backhand::BackhandError;
|
||||
use std::error::Error;
|
||||
use std::fmt::{Display, Formatter};
|
||||
use std::path::StripPrefixError;
|
||||
use xenclient::XenClientError;
|
||||
|
||||
pub type Result<T> = std::result::Result<T, HyphaError>;
|
||||
@ -40,3 +42,27 @@ impl From<XenClientError> for HyphaError {
|
||||
HyphaError::new(value.to_string().as_str())
|
||||
}
|
||||
}
|
||||
|
||||
impl From<ocipkg::error::Error> for HyphaError {
|
||||
fn from(value: ocipkg::error::Error) -> Self {
|
||||
HyphaError::new(value.to_string().as_str())
|
||||
}
|
||||
}
|
||||
|
||||
impl From<walkdir::Error> for HyphaError {
|
||||
fn from(value: walkdir::Error) -> Self {
|
||||
HyphaError::new(value.to_string().as_str())
|
||||
}
|
||||
}
|
||||
|
||||
impl From<StripPrefixError> for HyphaError {
|
||||
fn from(value: StripPrefixError) -> Self {
|
||||
HyphaError::new(value.to_string().as_str())
|
||||
}
|
||||
}
|
||||
|
||||
impl From<BackhandError> for HyphaError {
|
||||
fn from(value: BackhandError) -> Self {
|
||||
HyphaError::new(value.to_string().as_str())
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user