From a771db9ea4ad549677cb9bdf9ce44ec9aaa237d5 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sat, 5 Mar 2016 11:36:29 +0100 Subject: [PATCH] Add error kind for config errors --- libimagstore/src/error.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libimagstore/src/error.rs b/libimagstore/src/error.rs index a445c2d3..0e3fc32f 100644 --- a/libimagstore/src/error.rs +++ b/libimagstore/src/error.rs @@ -10,6 +10,7 @@ use std::convert::From; */ #[derive(Clone, Copy, Debug, PartialEq)] pub enum StoreErrorKind { + ConfigurationError, FileError, IdLocked, IdNotFound, @@ -36,6 +37,7 @@ pub enum StoreErrorKind { fn store_error_type_as_str(e: &StoreErrorKind) -> &'static str { match e { + &StoreErrorKind::ConfigurationError => "Store Configuration Error", &StoreErrorKind::FileError => "File Error", &StoreErrorKind::IdLocked => "ID locked", &StoreErrorKind::IdNotFound => "ID not found",