apply mapnik/c++ formatting

This commit is contained in:
Artem Pavlenko 2017-11-06 09:47:01 +01:00
parent 0a4214fe36
commit be5085d2e9

View file

@ -109,10 +109,13 @@ void add_xml_files(bfs::path dir, std::vector<bfs::path> &xml_files) {
}
void load_map(mapnik::Map &m, bfs::path const &path) {
try {
mapnik::load_map(m, path.native());
} catch (std::exception const &ex) {
try
{
mapnik::load_map(m, path.native());
}
catch (std::exception const &ex)
{
// errors which come from the datasource not being loaded or
// database not being set up aren't really useful - they're
// more likely to be spurious than meaningful, so ignore them.