From 18410fbf8572370a1b5a447d7741fd91648c870a Mon Sep 17 00:00:00 2001 From: Jan Kaluza Date: Mon, 8 Feb 2016 15:18:03 +0100 Subject: [PATCH] Libtransport: Make the error message more verbose when we are not able to load [logging] files --- libtransport/Logging.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libtransport/Logging.cpp b/libtransport/Logging.cpp index 44614034..bfbeab43 100644 --- a/libtransport/Logging.cpp +++ b/libtransport/Logging.cpp @@ -112,9 +112,11 @@ static void initLogging(Config *config, std::string key, bool only_create_dir = } catch(log4cxx::helpers::IOException &ex) { std::cerr << "Can't create FileInputStream logger instance: " << ex.what() << "\n"; + std::cerr << "This is usually caused by the non-existing \"" << CONFIG_STRING(config, key) << "\" file or bad permissions.\n"; } catch (...) { std::cerr << "Can't create FileInputStream logger instance\n"; + std::cerr << "This is usually caused by the non-existing \"" << CONFIG_STRING(config, key) << "\" file or bad permissions.\n"; } if (!istream) {