Add HookRegisterError kind
This commit is contained in:
parent
e969b8678e
commit
d99d25a3e1
1 changed files with 2 additions and 0 deletions
|
@ -27,6 +27,7 @@ pub enum StoreErrorKind {
|
|||
HeaderPathTypeFailure,
|
||||
HeaderKeyNotFound,
|
||||
HeaderTypeFailure,
|
||||
HookRegisterError,
|
||||
// maybe more
|
||||
}
|
||||
|
||||
|
@ -50,6 +51,7 @@ fn store_error_type_as_str(e: &StoreErrorKind) -> &'static str {
|
|||
&StoreErrorKind::HeaderPathTypeFailure => "Header has wrong type for path",
|
||||
&StoreErrorKind::HeaderKeyNotFound => "Header Key not found",
|
||||
&StoreErrorKind::HeaderTypeFailure => "Header type is wrong",
|
||||
&StoreErrorKind::HookRegisterError => "Hook register error",
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue