Skip to content

Commit

Permalink
handle invalid directory for the study
Browse files Browse the repository at this point in the history
  • Loading branch information
payetvin committed Dec 20, 2024
1 parent beb7339 commit 869a67a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/solver/modeler/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ int main(int argc, const char** argv)
}

std::filesystem::path studyPath(argv[1]);
logs.info() << "Study path: " << studyPath;

if (!std::filesystem::is_directory(studyPath))
{
logs.error() << "The path provided isn't a valid directory, exiting";
return EXIT_FAILURE;
}

const auto parameters = parseModelerParameters(studyPath);
const auto libraries = LoadFiles::loadLibraries(studyPath);
Expand Down

0 comments on commit 869a67a

Please sign in to comment.