Impl From<GitHookError> for HookError
This commit is contained in:
parent
21c6945a46
commit
81c0a9e170
1 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue