From a8775b634ba22e0d2fa17cfc078a47a31ee77bcb Mon Sep 17 00:00:00 2001 From: Helge Norberg Date: Mon, 5 Dec 2016 11:14:50 +0100 Subject: [PATCH] #516 Provided better logging to be able to see the problem. --- common/filesystem.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.39.2