]> git.sesse.net Git - casparcg/commitdiff
#516 Provided better logging to be able to see the problem.
authorHelge Norberg <helge.norberg@svt.se>
Mon, 5 Dec 2016 10:14:50 +0000 (11:14 +0100)
committerHelge Norberg <helge.norberg@svt.se>
Mon, 5 Dec 2016 10:14:50 +0000 (11:14 +0100)
common/filesystem.cpp

index 41869ad0427a48c9268a387824bf60be23001aa3..d93eb1327f21a691158296c48e6b3028185b70d5 100644 (file)
@@ -22,6 +22,7 @@
 #include "stdafx.h"
 
 #include "filesystem.h"
+#include "except.h"
 
 #include <boost/filesystem/operations.hpp>
 #include <boost/filesystem/path.hpp>
@@ -44,7 +45,7 @@ boost::filesystem::path get_relative(
                        break;
 
                if (current_path.empty())
-                       throw std::runtime_error("File not relative to folder");
+                       CASPAR_THROW_EXCEPTION(caspar_exception() << msg_info("File " + file.string() + " not relative to folder " + relative_to.string()));
 
                result = current_path.filename() / result;
        }