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:
parent
b7d91f0905
commit
911133818c
1 changed files with 1 additions and 1 deletions
|
@ -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")))
|
||||
.map_err_trace_exit_unwrap()
|
||||
.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>!");
|
||||
::std::process::exit(1)
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue