Impl From<GitHookError> for HookError

This commit is contained in:
Matthias Beyer 2016-07-22 15:49:57 +02:00
parent 21c6945a46
commit 81c0a9e170

View file

@ -33,6 +33,14 @@ impl GitHookError {
} }
impl From<GitHookError> for HE {
fn from(he: GitHookError) -> HE {
HE::new(HEK::HookExecutionError, Some(Box::new(he)))
}
}
pub use self::error::GitHookError; pub use self::error::GitHookError;
pub use self::error::GitHookErrorKind; pub use self::error::GitHookErrorKind;
pub use self::error::MapErrInto; pub use self::error::MapErrInto;