]> granicus.if.org Git - icinga2/commitdiff
Fix missing path in mkdir() exception
authorMichael Friedrich <michael.friedrich@netways.de>
Mon, 30 Nov 2015 09:37:57 +0000 (10:37 +0100)
committerMichael Friedrich <michael.friedrich@netways.de>
Fri, 4 Dec 2015 09:17:40 +0000 (10:17 +0100)
fixes #10748

lib/base/utility.cpp

index 3e52ab6edf36948098ddd8175264eda4ee0a8def..834e5dec5dedb2bd9eb2233ef26f612b19a7de4b 100644 (file)
@@ -707,7 +707,8 @@ void Utility::MkDir(const String& path, int flags)
 #endif /* _WIN32 */
                BOOST_THROW_EXCEPTION(posix_error()
                    << boost::errinfo_api_function("mkdir")
-                   << boost::errinfo_errno(errno));
+                   << boost::errinfo_errno(errno)
+                   << boost::errinfo_file_name(path));
        }
 }