Skip to content
Snippets Groups Projects
Commit b94c0a55 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

throw upon empty file load pattern

parent caf40cfb
No related branches found
No related tags found
No related merge requests found
......@@ -41,6 +41,8 @@ void NFileIn::load(void)
{
string pattern = sask("Load file(s)");
vector<string> fNames = triv::glob_file_list(pattern, "yda y08 a01 i96");
if (!fNames.size())
throw "Found no files that match the pattern '" + pattern + "'";
for (string fnam : fNames) {
try {
string fdir, fshort, fext;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment