From 1a4d2029894cd37d76eb2189c3ed5a469052976a Mon Sep 17 00:00:00 2001 From: Nathan Fisher Date: Sat, 8 Apr 2023 11:45:39 -0400 Subject: [PATCH] Expand InstallerError enum; --- src/installer/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/installer/mod.rs b/src/installer/mod.rs index 3e2a36b..b5b01ea 100644 --- a/src/installer/mod.rs +++ b/src/installer/mod.rs @@ -35,10 +35,12 @@ impl Installer { 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), } } }