[icinga-checkins] icinga.org: icinga2/next: Fix incorrect path in an error message

git at icinga.org git at icinga.org
Thu Jun 26 14:18:58 CEST 2014


Module: icinga2
Branch: next
Commit: 96521ead103c966269b77399c6c92a8f86998a1b
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=96521ead103c966269b77399c6c92a8f86998a1b

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Thu Jun 26 14:16:37 2014 +0200

Fix incorrect path in an error message

fixes #6492

---

 lib/base/dynamicobject.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/base/dynamicobject.cpp b/lib/base/dynamicobject.cpp
index e02d54e..c56e0c5 100644
--- a/lib/base/dynamicobject.cpp
+++ b/lib/base/dynamicobject.cpp
@@ -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);
 



More information about the icinga-checkins mailing list