Skip to content

Commit 3708d3c

Browse files
authored
Merge pull request #67 from Bzero/missing_config_graceful_exit
Exit gracefully when trying to build in a directory without configuration file.
2 parents 714061c + 6e3306e commit 3708d3c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Driver.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,8 @@ void Driver::config() {
342342
config_file = "doxide.yml";
343343
} else if (std::filesystem::exists("doxide.json")) {
344344
config_file = "doxide.json";
345+
} else {
346+
error("no configuration file found; create a doxide.yaml file to configure Doxide.");
345347
}
346348

347349
/* parse build configuration file */

0 commit comments

Comments
 (0)