]> granicus.if.org Git - icinga2/commitdiff
Fix incorrect path in an error message
authorGunnar Beutner <gunnar.beutner@netways.de>
Thu, 26 Jun 2014 12:16:37 +0000 (14:16 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Thu, 26 Jun 2014 12:16:37 +0000 (14:16 +0200)
fixes #6492

lib/base/dynamicobject.cpp

index e02d54ee8ed2b354414b4280efa0e1fc3898057c..c56e0c5a4bb0c9f83c3b27ac2cc8945487f96013 100644 (file)
@@ -237,7 +237,7 @@ void DynamicObject::DumpObjects(const String& filename, int attributeTypes)
        fp.open(tempFilename.CStr(), std::ios_base::out);
 
        if (!fp)
-               BOOST_THROW_EXCEPTION(std::runtime_error("Could not open '" + filename + "' file"));
+               BOOST_THROW_EXCEPTION(std::runtime_error("Could not open '" + tempFilename + "' file"));
 
        StdioStream::Ptr sfp = make_shared<StdioStream>(&fp, false);