From: Gunnar Beutner Date: Thu, 26 Jun 2014 12:16:37 +0000 (+0200) Subject: Fix incorrect path in an error message X-Git-Tag: v2.0.1~29 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=96521ead103c966269b77399c6c92a8f86998a1b;p=icinga2 Fix incorrect path in an error message fixes #6492 --- diff --git a/lib/base/dynamicobject.cpp b/lib/base/dynamicobject.cpp index e02d54ee8..c56e0c5a4 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(&fp, false);