Skip to content

Commit

Permalink
Merge pull request #67 from Bzero/missing_config_graceful_exit
Browse files Browse the repository at this point in the history
Exit gracefully when trying to build in a directory without configuration file.
  • Loading branch information
lawmurray authored Jan 21, 2025
2 parents 714061c + 6e3306e commit 3708d3c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,8 @@ void Driver::config() {
config_file = "doxide.yml";
} else if (std::filesystem::exists("doxide.json")) {
config_file = "doxide.json";
} else {
error("no configuration file found; create a doxide.yaml file to configure Doxide.");
}

/* parse build configuration file */
Expand Down

0 comments on commit 3708d3c

Please sign in to comment.