Skip to content

Commit

Permalink
trigger error if section is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
jlblancoc committed Dec 3, 2023
1 parent 25ee001 commit 2df123d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions apps/observations2map/observations2map_main.cpp
Expand Up @@ -79,9 +79,12 @@ int main(int argc, char** argv)
cout << "done: " << simplemap.size() << " observations." << endl;

// Create metric maps:
CConfigFile cfg(configFile);

ASSERT_(cfg.sectionExists(METRIC_MAP_CONFIG_SECTION));

TSetOfMetricMapInitializers mapCfg;
mapCfg.loadFromConfigFile(
CConfigFile(configFile), METRIC_MAP_CONFIG_SECTION);
mapCfg.loadFromConfigFile(cfg, METRIC_MAP_CONFIG_SECTION);

CMultiMetricMap metricMap;
metricMap.setListOfMaps(mapCfg);
Expand Down

0 comments on commit 2df123d

Please sign in to comment.