fix error output if svg geometry conversion fails

This commit is contained in:
Dane Springmeyer 2013-02-10 06:17:04 -08:00
parent 3c59eba780
commit 808b07ad6c

View file

@ -234,11 +234,11 @@ std::string to_svg( geometry_type const& geom)
bool result = mapnik::util::to_svg(svg,geom); bool result = mapnik::util::to_svg(svg,geom);
if (!result) if (!result)
{ {
throw std::runtime_error("Generate WKT failed"); throw std::runtime_error("Generate SVG failed");
} }
return svg; return svg;
#else #else
throw std::runtime_error("mapnik::to_wkt() requires at least boost 1.47 while your build was compiled against boost " throw std::runtime_error("mapnik::to_svg() requires at least boost 1.47 while your build was compiled against boost "
+ boost_version()); + boost_version());
#endif #endif
} }