From: Helge Norberg Date: Mon, 5 Dec 2016 10:14:50 +0000 (+0100) Subject: #516 Provided better logging to be able to see the problem. X-Git-Tag: 2.1.0_Beta2~133 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=a8775b634ba22e0d2fa17cfc078a47a31ee77bcb;p=casparcg #516 Provided better logging to be able to see the problem. --- diff --git a/common/filesystem.cpp b/common/filesystem.cpp index 41869ad04..d93eb1327 100644 --- a/common/filesystem.cpp +++ b/common/filesystem.cpp @@ -22,6 +22,7 @@ #include "stdafx.h" #include "filesystem.h" +#include "except.h" #include #include @@ -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; }