From 03a7fc23094454b13d70683b81423489a9e4039d Mon Sep 17 00:00:00 2001 From: Tadas Baltrusaitis Date: Wed, 15 Nov 2017 09:03:41 +0000 Subject: [PATCH] ImageCapture fix when bounding box not found. --- lib/local/Utilities/src/ImageCapture.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/local/Utilities/src/ImageCapture.cpp b/lib/local/Utilities/src/ImageCapture.cpp index 93dfb63..87a53e5 100644 --- a/lib/local/Utilities/src/ImageCapture.cpp +++ b/lib/local/Utilities/src/ImageCapture.cpp @@ -249,11 +249,11 @@ bool ImageCapture::OpenDirectory(std::string directory, std::string bbox_directo bounding_boxes.push_back(bboxes_image); } - - } - else - { - ERROR_STREAM("Could not find the corresponding bounding box for file:" + file_iterator->string()); + else + { + ERROR_STREAM("Could not find the corresponding bounding box for file:" + file_iterator->string()); + exit(1); + } } } }