From 18410fbf8572370a1b5a447d7741fd91648c870a 2016-02-08 15:18:03 From: Jan Kaluza Date: 2016-02-08 15:18:03 Subject: [PATCH] Libtransport: Make the error message more verbose when we are not able to load [logging] files --- diff --git a/libtransport/Logging.cpp b/libtransport/Logging.cpp index 44614034d5606f4c1fa1f242e4241cc2900f6e74..bfbeab4356e811497d1b41bb6c700e28f23d0ca6 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) {