diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-04-27 23:41:26 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-04-27 23:41:26 +0100 |
| commit | 7f2e74604a51b984e4c8cbb5d5f4bb642677ec00 (patch) | |
| tree | be2da9736a298d9367c8c8f1aa231c43251ccaab /src/lib/image_content.cc | |
| parent | 243dff6782db2783648c9efc0e6cd17b1c6cdaae (diff) | |
| parent | ab43240870523c96c68493d107b8bc8c5294629b (diff) | |
Merge master.
Diffstat (limited to 'src/lib/image_content.cc')
| -rw-r--r-- | src/lib/image_content.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/image_content.cc b/src/lib/image_content.cc index d7b37a835..56c83d3f7 100644 --- a/src/lib/image_content.cc +++ b/src/lib/image_content.cc @@ -44,7 +44,11 @@ ImageContent::ImageContent (shared_ptr<const Film> f, boost::filesystem::path p) _paths.push_back (i->path ()); } } - + + if (_paths.empty()) { + throw FileError (_("No valid image files were found in the folder."), p); + } + sort (_paths.begin(), _paths.end()); } } |
