Skip to content

Commit

Permalink
Check input file exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Aang23 committed Jun 8, 2021
1 parent 9322dd5 commit 9eb3c92
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src-core/pipeline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ void Pipeline::run(std::string input_file,
std::shared_ptr<std::vector<std::shared_ptr<ProcessingModule>>> uiCallList,
std::shared_ptr<std::mutex> uiCallListMutex)
{
if (!std::filesystem::exists(input_file))
{
logger->error("Input file " + input_file + " does not exist!");
return;
}

logger->debug("Starting " + name);

std::vector<std::string> lastFiles;
Expand Down

0 comments on commit 9eb3c92

Please sign in to comment.