summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2019-05-23 17:13:10 +0200
committerMatthias Beyer <mail@beyermatthias.de>2019-05-23 17:13:10 +0200
commit911133818cd0d26252d3e1c032fcd7ce7736a4b9 (patch)
tree6319530d7f6418e26886a7655e428bfa0dbd22de
parentb7d91f0905e6b39348539c1800773192250c13f1 (diff)
downloadimag-911133818cd0d26252d3e1c032fcd7ce7736a4b9.zip
imag-911133818cd0d26252d3e1c032fcd7ce7736a4b9.tar.gz
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>
-rw-r--r--bin/domain/imag-log/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/domain/imag-log/src/main.rs b/bin/domain/imag-log/src/main.rs
index 3ecd492..1f0a4d4 100644
--- a/bin/domain/imag-log/src/main.rs
+++ b/bin/domain/imag-log/src/main.rs
@@ -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 {