From 808b07ad6cc8fb82d68758e7a87b1766b9cbad10 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Sun, 10 Feb 2013 06:17:04 -0800 Subject: [PATCH] fix error output if svg geometry conversion fails --- bindings/python/mapnik_geometry.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/python/mapnik_geometry.cpp b/bindings/python/mapnik_geometry.cpp index bf90e167a..1a949c6aa 100644 --- a/bindings/python/mapnik_geometry.cpp +++ b/bindings/python/mapnik_geometry.cpp @@ -234,11 +234,11 @@ std::string to_svg( geometry_type const& geom) bool result = mapnik::util::to_svg(svg,geom); if (!result) { - throw std::runtime_error("Generate WKT failed"); + throw std::runtime_error("Generate SVG failed"); } return svg; #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()); #endif }