From 63cc6de8fd2e6f5f1a997b2e7e4512c1c8f4126f Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 18 Sep 2014 20:28:15 +0000 Subject: Improve exception message if a Daemon is used without being configured first --- lib/server/Daemon.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/server/Daemon.cpp') 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; -- cgit v1.2.3