Skip to content
Snippets Groups Projects
Commit 06b29068 authored by Oliver Kirsebom's avatar Oliver Kirsebom
Browse files

terminate if no files found

parent 31c69533
No related branches found
No related tags found
No related merge requests found
......@@ -32,6 +32,11 @@ int main( int argc, char* argv[] ){
vector<string> input;
findFiles(run, input);
if (input.size() == 0) {
cout << "Unable to find any files with run number " << run << endl;
return 0;
}
vector<shared_ptr<VKRawReader>> readers;
for (auto& i : input) {
auto r = make_shared<VKRawReader> (i);
......
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