From ff62a4531bf4d2c4f9bcce147860860987c0d8de Mon Sep 17 00:00:00 2001 From: Vladyslav Usenko Date: Mon, 15 Apr 2019 13:58:47 +0200 Subject: [PATCH] Added check if marg. data folder exists --- src/io/marg_data_io.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/io/marg_data_io.cpp b/src/io/marg_data_io.cpp index 91a410c..846b487 100644 --- a/src/io/marg_data_io.cpp +++ b/src/io/marg_data_io.cpp @@ -33,7 +33,6 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ - #include #include @@ -122,6 +121,9 @@ MargDataSaver::MargDataSaver(const std::string& path) { MargDataLoader::MargDataLoader() : out_marg_queue(nullptr) {} void MargDataLoader::start(const std::string& path) { + if (!fs::exists(path)) + std::cerr << "No marg. data found in " << path << std::endl; + auto func = [&, path]() { std::string img_path = path + "/images/";