Skip to content

Commit

Permalink
Improve error on missing config file
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkvdb committed Apr 23, 2024
1 parent 51e98b9 commit 8591a1f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions logic/configurationparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -661,6 +661,10 @@ static RunConfiguration parse_run_configuration_impl(std::string_view configCont

RunConfiguration parse_run_configuration_file(const fs::path& config)
{
if (config.empty()) {
throw RuntimeError("No config file provided");
}

return parse_run_configuration_impl(file::read_as_text(config), config);
}

Expand Down

0 comments on commit 8591a1f

Please sign in to comment.