Merge pull request #287 from matthiasbeyer/libimagstore/hooks/fix-missing-tostr-impl
Add missing hook_error_type_as_str() impl
This commit is contained in:
commit
94bed5f364
1 changed files with 2 additions and 1 deletions
|
@ -36,7 +36,8 @@ impl Into<HookError> for (HookErrorKind, Box<Error>) {
|
||||||
|
|
||||||
fn hook_error_type_as_str(e: &HookErrorKind) -> &'static str {
|
fn hook_error_type_as_str(e: &HookErrorKind) -> &'static str {
|
||||||
match e {
|
match e {
|
||||||
_ => "",
|
&HookErrorKind::HookExecutionError => "Hook exec error",
|
||||||
|
&HookErrorKind::AccessTypeViolation => "Hook access type violation",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue