Small state fixes (#901)

* small fixes

* catch uncaught exception
This commit is contained in:
water111
2021-10-15 21:31:22 -04:00
committed by GitHub
parent 08e98b49c6
commit f87646e8ce
7 changed files with 118 additions and 18 deletions
+8 -1
View File
@@ -26,7 +26,14 @@ int main(int argc, char** argv) {
}
// collect all files to process
auto config = read_config_file(argv[1]);
Config config;
try {
config = read_config_file(argv[1]);
} catch (const std::exception& e) {
lg::error("Failed to parse config");
return 1;
}
std::string in_folder = argv[2];
std::string out_folder = argv[3];