diff options
| author | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-02-09 11:33:15 +0100 |
|---|---|---|
| committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-02-09 11:33:15 +0100 |
| commit | 636aa0d0e5b18c5a5463fde421d76081fbe8d978 (patch) | |
| tree | aed2aa4b789d600e693ad2a37e6d5ca704d02264 | |
| parent | 41cec047b34823050bc579a9296b26e08dc5e8a6 (diff) | |
| download | apps-science_tools-636aa0d0e5b18c5a5463fde421d76081fbe8d978.tar.gz | |
change to basically -p and skip not found errormain
| -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"); } |
