summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2014-09-18 20:28:15 +0000
committerChris Wilson <chris+github@qwirx.com>2014-09-18 20:28:15 +0000
commit63cc6de8fd2e6f5f1a997b2e7e4512c1c8f4126f (patch)
tree72e432ee124eb5ba68e4c44e5b6282f459056f7a /lib
parent439ddb8e72057fae22e28540fcce0293f56f6ffb (diff)
Improve exception message if a Daemon is used without being configured first
Diffstat (limited to 'lib')
-rw-r--r--lib/server/Daemon.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/server/Daemon.cpp b/lib/server/Daemon.cpp
index 65ff5792..346440fe 100644
--- a/lib/server/Daemon.cpp
+++ b/lib/server/Daemon.cpp
@@ -887,7 +887,9 @@ const Configuration &Daemon::GetConfiguration() const
if(mapConfiguration.get() == 0)
{
// Shouldn't get anywhere near this if a configuration file can't be loaded
- THROW_EXCEPTION(ServerException, Internal)
+ THROW_EXCEPTION_MESSAGE(ServerException, Internal,
+ "The daemon has not been configured; no config file "
+ "has been loaded.");
}
return *mapConfiguration;