From: Sandro Santilli Date: Fri, 16 Dec 2011 15:16:47 +0000 (+0000) Subject: Report full exception string on ST_Intersection failure (see #1173) X-Git-Tag: 2.0.0alpha1~429 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0b1585a165bda52629ab188af737291417c2cd41;p=postgis Report full exception string on ST_Intersection failure (see #1173) git-svn-id: http://svn.osgeo.org/postgis/trunk@8445 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/liblwgeom/lwgeom_geos.c b/liblwgeom/lwgeom_geos.c index 5942e856f..c8a901a87 100644 --- a/liblwgeom/lwgeom_geos.c +++ b/liblwgeom/lwgeom_geos.c @@ -463,7 +463,8 @@ lwgeom_intersection(const LWGEOM *geom1, const LWGEOM *geom2) { GEOSGeom_destroy(g1); GEOSGeom_destroy(g2); - lwerror("Error performing intersection."); + lwerror("Error performing intersection: %s", + lwgeom_geos_errmsg); return NULL; /* never get here */ } @@ -478,7 +479,8 @@ lwgeom_intersection(const LWGEOM *geom1, const LWGEOM *geom2) GEOSGeom_destroy(g1); GEOSGeom_destroy(g2); GEOSGeom_destroy(g3); - lwerror("GEOS Intersection() threw an error (result postgis geometry formation)!"); + lwerror("Error performing intersection: GEOS2LWGEOM: %s", + lwgeom_geos_errmsg); return NULL ; /* never get here */ } @@ -549,7 +551,8 @@ lwgeom_difference(const LWGEOM *geom1, const LWGEOM *geom2) GEOSGeom_destroy(g1); GEOSGeom_destroy(g2); GEOSGeom_destroy(g3); - lwerror("GEOS difference() threw an error (result postgis geometry formation)!"); + lwerror("Error performing difference: GEOS2LWGEOM: %s", + lwgeom_geos_errmsg); return NULL; /* never get here */ } @@ -704,7 +707,8 @@ lwgeom_union(const LWGEOM *geom1, const LWGEOM *geom2) if (result == NULL) { - lwerror("GEOS union() threw an error (result postgis geometry formation)!"); + lwerror("Error performing union: GEOS2LWGEOM: %s", + lwgeom_geos_errmsg); return NULL; /*never get here */ }