Updated the error handling of geojson parser so that it is more clear where an error orginates

This commit is contained in:
Blake Thompson 2015-10-06 15:00:53 -07:00
parent 89e1cfaf10
commit 6e47b1bd10

View file

@ -44,7 +44,7 @@ struct error_handler
auto start = err_pos;
std::advance(err_pos,16);
auto end = err_pos;
s << what << " expected but got: " << std::string(start, end);
s << "Mapnik geojson parsing error:" << what << " expected but got: " << std::string(start, end);
throw std::runtime_error(s.str());
}
};