Commit ec113bab authored by Simon Spannagel's avatar Simon Spannagel
Browse files

RPC3 reader: fail if directory is not there

parent 77d76a61
Pipeline #238494 failed with stages
in 1 minute and 58 seconds
...@@ -43,8 +43,7 @@ void Timepix3EventLoader::initialise() { ...@@ -43,8 +43,7 @@ void Timepix3EventLoader::initialise() {
// Open the root directory // Open the root directory
DIR* directory = opendir(m_inputDirectory.c_str()); DIR* directory = opendir(m_inputDirectory.c_str());
if(directory == NULL) { if(directory == NULL) {
LOG(ERROR) << "Directory " << m_inputDirectory << " does not exist"; throw AlgorithmError("Directory " + m_inputDirectory + " does not exist");
return;
} else { } else {
LOG(TRACE) << "Found directory " << m_inputDirectory; LOG(TRACE) << "Found directory " << m_inputDirectory;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment