#[derive(thiserror::Error, Debug)]
pub enum DownloaderError {
#[error(transparent)]
Io(#[from] std::io::Error),
#[error(transparent)]
Http(#[from] reqwest::Error),
#[error(transparent)]
Url(#[from] url::ParseError),
#[error(transparent)]
Object(#[from] object::Error),
#[error("unsupported file kind: {0:?}")]
UnsupportedFileKind(object::FileKind),
#[error("CodeView info not found")]
MissingCodeView,
}
impl From<DownloaderError> for isr_dl::Error {
fn from(value: DownloaderError) -> Self {
isr_dl::Error::Other(Box::new(value))
}
}