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 ;
}
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 ;
}