diff --git a/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/apps/volk_gnsssdr_profile.cc b/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/apps/volk_gnsssdr_profile.cc index a787b042e..dade361ac 100644 --- a/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/apps/volk_gnsssdr_profile.cc +++ b/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/apps/volk_gnsssdr_profile.cc @@ -267,21 +267,24 @@ void write_results(const std::vector *results, bool // do not overwrite volk_gnsssdr_config when using a regex. if (!fs::exists(config_path.parent_path())) { - std::cout << "Creating " << config_path.parent_path() << " ..." << std::endl; try { - fs::create_directories(config_path.parent_path()); - } - catch (const fs::filesystem_error &e) - { - std::cerr << "ERROR: Could not create folder " << config_path.parent_path() << std::endl; - std::cerr << "Reason: " << e.what() << std::endl; - return; + std::cout << "Creating " << config_path.parent_path() << " ..." << std::endl; + try + { + fs::create_directories(config_path.parent_path()); + } + catch (const fs::filesystem_error &e) + { + std::cerr << "ERROR: Could not create folder " << config_path.parent_path() << std::endl; + std::cerr << "Reason: " << e.what() << std::endl; + return; + } } catch (...) { // Catch exception when using std::experimental - std::cerr << "ERROR: Could not create folder " << config_path.parent_path() << std::endl; + std::cerr << "ERROR: Could not create folder" << std::endl; return; } }