From 636aa0d0e5b18c5a5463fde421d76081fbe8d978 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Mon, 9 Feb 2026 11:33:15 +0100 Subject: change to basically -p and skip not found error --- run_and_record/c++/main.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'run_and_record') 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 kel_main(int argc, char** argv){ auto eo_file = saw::easy::read_and_decode_file(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()){ + return std::move(eo_file.get_error()); + } } args.template get<"args">() = eo_file.get_value(); } @@ -298,7 +301,7 @@ saw::error_or 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("Couldn't create directory for file"); } -- cgit v1.2.3