From 2d894a8507c7ea149b0aafa9b67048ae46ea713f Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Sat, 13 Jul 2019 12:29:06 +0200 Subject: [PATCH] Catch exception when using std::experimental --- .../volk_gnsssdr/apps/volk_gnsssdr_profile.cc | 6 ++++++ 1 file changed, 6 insertions(+) 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 132e7df44..a787b042e 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 @@ -278,6 +278,12 @@ void write_results(const std::vector *results, bool 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; + return; + } } std::ofstream config;