From 49e05caf0462f4c87d80c8f763f2312b8e8b0e1c Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Fri, 6 Sep 2013 16:46:30 +0000 Subject: [PATCH] Enhance error messages in lwgeom_intersection and lwgeom_normalize git-svn-id: http://svn.osgeo.org/postgis/trunk@11931 b70326c6-7e19-0410-871a-916f4a2858ee --- liblwgeom/lwgeom_geos.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/liblwgeom/lwgeom_geos.c b/liblwgeom/lwgeom_geos.c index f627fa08b..7f21eb4b4 100644 --- a/liblwgeom/lwgeom_geos.c +++ b/liblwgeom/lwgeom_geos.c @@ -432,7 +432,7 @@ lwgeom_normalize(const LWGEOM *geom1) g1 = LWGEOM2GEOS(geom1); if ( 0 == g1 ) /* exception thrown at construction */ { - lwerror("First argument geometry could not be converted to GEOS."); + lwerror("First argument geometry could not be converted to GEOS: %s", lwgeom_geos_errmsg); return NULL ; } @@ -485,7 +485,7 @@ lwgeom_intersection(const LWGEOM *geom1, const LWGEOM *geom2) g1 = LWGEOM2GEOS(geom1); if ( 0 == g1 ) /* exception thrown at construction */ { - lwerror("First argument geometry could not be converted to GEOS."); + lwerror("First argument geometry could not be converted to GEOS: %s", lwgeom_geos_errmsg); return NULL ; } -- 2.40.0