]> granicus.if.org Git - icinga2/commitdiff
Fixed incorrect references to the 'retention.dat' file.
authorGunnar Beutner <gunnar.beutner@netways.de>
Thu, 26 Jul 2012 09:42:57 +0000 (11:42 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Thu, 26 Jul 2012 09:42:57 +0000 (11:42 +0200)
base/configobject.cpp

index e0e3bf8fb442c4a5d0bd3094d95a0f6c9893bc43..21a1258c25544f678c448329942d45ff86574092 100644 (file)
@@ -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<FIFO>();
 
@@ -296,7 +296,7 @@ void ConfigObject::RestoreObjects(const string& filename)
                Variant value = Variant::Deserialize(message);
 
                if (!value.IsObjectType<Dictionary>())
-                       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;