diff --git a/libimagstorestdhook/src/vcs/git/error.rs b/libimagstorestdhook/src/vcs/git/error.rs index 4b4daf96..0af7b0ab 100644 --- a/libimagstorestdhook/src/vcs/git/error.rs +++ b/libimagstorestdhook/src/vcs/git/error.rs @@ -33,6 +33,14 @@ impl GitHookError { } +impl From for HE { + + fn from(he: GitHookError) -> HE { + HE::new(HEK::HookExecutionError, Some(Box::new(he))) + } + +} + pub use self::error::GitHookError; pub use self::error::GitHookErrorKind; pub use self::error::MapErrInto;