fix error output if svg geometry conversion fails
This commit is contained in:
parent
3c59eba780
commit
808b07ad6c
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue