Add HookRegisterError kind

This commit is contained in:
Matthias Beyer 2016-02-15 22:14:13 +01:00
parent e969b8678e
commit d99d25a3e1

View file

@ -27,6 +27,7 @@ pub enum StoreErrorKind {
HeaderPathTypeFailure, HeaderPathTypeFailure,
HeaderKeyNotFound, HeaderKeyNotFound,
HeaderTypeFailure, HeaderTypeFailure,
HookRegisterError,
// maybe more // 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::HeaderPathTypeFailure => "Header has wrong type for path",
&StoreErrorKind::HeaderKeyNotFound => "Header Key not found", &StoreErrorKind::HeaderKeyNotFound => "Header Key not found",
&StoreErrorKind::HeaderTypeFailure => "Header type is wrong", &StoreErrorKind::HeaderTypeFailure => "Header type is wrong",
&StoreErrorKind::HookRegisterError => "Hook register error",
} }
} }