From 564a602eaf569c981b1972cd40e8a893c1da1e15 Mon Sep 17 00:00:00 2001 From: john30 Date: Sat, 21 Feb 2015 18:58:29 +0100 Subject: [PATCH] only dump messages if loading was successful --- src/ebusd/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ebusd/main.cpp b/src/ebusd/main.cpp index c79b6a16..b0634e50 100644 --- a/src/ebusd/main.cpp +++ b/src/ebusd/main.cpp @@ -530,9 +530,9 @@ int main(int argc, char* argv[]) if (opt.checkConfig) { logNotice(lf_main, "Performing configuration check..."); - loadConfigFiles(&templates, &messages, true); + result_t result = loadConfigFiles(&templates, &messages, true); - if (opt.checkConfig > 1) { + if (result == RESULT_OK && opt.checkConfig > 1) { logNotice(lf_main, "Configuration dump:"); messages.dump(cout); }