diff options
Diffstat (limited to 'run_and_record')
| -rw-r--r-- | run_and_record/c++/main.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/run_and_record/c++/main.cpp b/run_and_record/c++/main.cpp index c21ec9d..83adda5 100644 --- a/run_and_record/c++/main.cpp +++ b/run_and_record/c++/main.cpp @@ -176,7 +176,10 @@ saw::error_or<void> kel_main(int argc, char** argv){ auto eo_file = saw::easy::read_and_decode_file<sch::RarConfig,saw::encode::Json>(conf_file); if(eo_file.is_error()){ - return std::move(eo_file.get_error()); + auto& err = eo_file.get_error(); + if(not err.is_type<saw::err::not_found>()){ + return std::move(eo_file.get_error()); + } } args.template get<"args">() = eo_file.get_value(); } @@ -298,7 +301,7 @@ saw::error_or<void> kel_main(int argc, char** argv){ } - if(not std::filesystem::create_directory(data_full_dir)){ + if(not std::filesystem::create_directories(data_full_dir)){ return saw::make_error<saw::err::critical>("Couldn't create directory for file"); } |
