From d1728a6aa360a6428b27ce02ae49230561b9d040 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 24 Jul 2016 18:04:51 +0200 Subject: [PATCH] Add error kinds for config override errors --- libimagrt/src/configuration.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libimagrt/src/configuration.rs b/libimagrt/src/configuration.rs index a2ee1fed..450755fc 100644 --- a/libimagrt/src/configuration.rs +++ b/libimagrt/src/configuration.rs @@ -6,7 +6,12 @@ use toml::{Parser, Value}; generate_error_module!( generate_error_types!(ConfigError, ConfigErrorKind, - NoConfigFileFound => "No config file found" + NoConfigFileFound => "No config file found", + + ConfigOverrideError => "Config override error", + ConfigOverrideKeyNotAvailable => "Key not available", + ConfigOverrideTypeNotMatching => "Configuration Type not matching" + ); );