Skip to content

Commit

Permalink
Missing image files will now error in opencv/capture/image
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-pr committed May 8, 2020
1 parent bb11680 commit 39769aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/plugins/opencv/nodes/capture/image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ dependency_graph::State compute(dependency_graph::Values& data) {
exif = possumwood::opencv::Exif(exposure, fnumber, iso);
data.set(a_exif, exif);
}
else
throw std::runtime_error("Filename '" + filename.filename().string() + "' not found or not accessible!");

data.set(a_frame, possumwood::opencv::Frame(result));

Expand Down

0 comments on commit 39769aa

Please sign in to comment.