mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-07-22 20:02:55 +00:00
Catch all exceptions
This commit is contained in:
parent
f24ae66ca2
commit
ca92ff0e44
@ -266,6 +266,8 @@ void write_results(const std::vector<volk_gnsssdr_test_results_t> *results, bool
|
||||
// Until we can update the config on a kernel by kernel basis
|
||||
// do not overwrite volk_gnsssdr_config when using a regex.
|
||||
if (!fs::exists(config_path.parent_path()))
|
||||
{
|
||||
try
|
||||
{
|
||||
std::cout << "Creating " << config_path.parent_path() << " ..." << std::endl;
|
||||
try
|
||||
@ -278,10 +280,11 @@ void write_results(const std::vector<volk_gnsssdr_test_results_t> *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;
|
||||
std::cerr << "ERROR: Could not create folder" << std::endl;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user