Fix: Negation error

We have to check whether the configuration is _not_ a String type.
Dump fail.

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
Matthias Beyer 2019-05-23 17:13:10 +02:00
parent b7d91f0905
commit 911133818c

View file

@ -230,7 +230,7 @@ fn get_diary_name(rt: &Runtime) -> String {
.ok_or_else(|| Error::from(err_msg("Configuration 'log.logs' is not an Array"))) .ok_or_else(|| Error::from(err_msg("Configuration 'log.logs' is not an Array")))
.map_err_trace_exit_unwrap() .map_err_trace_exit_unwrap()
.iter() .iter()
.map(|e| if is_match!(e, &Value::String(_)) { .map(|e| if !is_match!(e, &Value::String(_)) {
error!("Configuration 'log.logs' is not an Array<String>!"); error!("Configuration 'log.logs' is not an Array<String>!");
::std::process::exit(1) ::std::process::exit(1)
} else { } else {