From: Gunnar Beutner Date: Thu, 26 Jul 2012 09:42:57 +0000 (+0200) Subject: Fixed incorrect references to the 'retention.dat' file. X-Git-Tag: v0.0.1~186 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=61e381befce0166c7f65efe3910b7bc212fa23dc;p=icinga2 Fixed incorrect references to the 'retention.dat' file. --- diff --git a/base/configobject.cpp b/base/configobject.cpp index e0e3bf8fb..21a1258c2 100644 --- a/base/configobject.cpp +++ b/base/configobject.cpp @@ -237,7 +237,7 @@ void ConfigObject::DumpObjects(const string& filename) fp.open(filename.c_str()); if (!fp) - throw_exception(runtime_error("Could not open retention.dat file")); + throw_exception(runtime_error("Could not open '" + filename + "' file")); FIFO::Ptr fifo = boost::make_shared(); @@ -296,7 +296,7 @@ void ConfigObject::RestoreObjects(const string& filename) Variant value = Variant::Deserialize(message); if (!value.IsObjectType()) - throw_exception(runtime_error("JSON objects in the retention file must be dictionaries.")); + throw_exception(runtime_error("JSON objects in the program state file must be dictionaries.")); Dictionary::Ptr persistentObject = value;