Expand InstallerError enum;
This commit is contained in:
parent
784069402d
commit
1a4d202989
@ -35,10 +35,12 @@ impl<T: io::Read> Installer<T> {
|
||||
|
||||
mod error {
|
||||
use std::{io, fmt, error::Error};
|
||||
use hpk_package::tar;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub enum InstallError {
|
||||
IO(io::Error),
|
||||
Tar(tar::Error),
|
||||
}
|
||||
|
||||
impl fmt::Display for InstallError {
|
||||
@ -51,6 +53,7 @@ mod error {
|
||||
fn source(&self) -> Option<&(dyn Error + 'static)> {
|
||||
match self {
|
||||
Self::IO(e) => Some(e),
|
||||
Self::Tar(e) => Some(e),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user