From 3421e8d4d99f60cf1415f2ff726c84bdf65f8c92 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 23 Feb 2016 20:05:02 +0100 Subject: [PATCH] Add HookExecutionError error kind --- libimagstore/src/error.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libimagstore/src/error.rs b/libimagstore/src/error.rs index 3b4d7ca9..55d883a6 100644 --- a/libimagstore/src/error.rs +++ b/libimagstore/src/error.rs @@ -28,6 +28,7 @@ pub enum StoreErrorKind { HeaderKeyNotFound, HeaderTypeFailure, HookRegisterError, + HookExecuteError, PreHookExecuteError, PostHookExecuteError, // maybe more @@ -54,6 +55,7 @@ fn store_error_type_as_str(e: &StoreErrorKind) -> &'static str { &StoreErrorKind::HeaderKeyNotFound => "Header Key not found", &StoreErrorKind::HeaderTypeFailure => "Header type is wrong", &StoreErrorKind::HookRegisterError => "Hook register error", + &StoreErrorKind::HookExecutionError => "Hook execution error", &StoreErrorKind::PreHookExecuteError => "Pre-Hook execution error", &StoreErrorKind::PostHookExecuteError => "Post-Hook execution error", }