diff --git a/src/load_map.cpp b/src/load_map.cpp index 295335daf..b491a4405 100644 --- a/src/load_map.cpp +++ b/src/load_map.cpp @@ -53,6 +53,7 @@ #include #include #include +#include // boost #include @@ -225,7 +226,7 @@ void map_parser::parse_map(Map & map, xml_node const& pt, std::string const& bas // create throwaway projection object here to ensure it is valid projection proj(srs); } - catch (proj_init_error const& ex) + catch (std::exception const& ex) { throw mapnik::config_error(ex.what()); } @@ -578,7 +579,7 @@ void map_parser::parse_layer(Map & map, xml_node const& node) // create throwaway projection object here to ensure it is valid projection proj(srs); } - catch (proj_init_error const& ex) + catch (std::exception const& ex) { throw mapnik::config_error(ex.what()); }