From: Paul Ramsey Date: Thu, 8 Oct 2009 18:59:30 +0000 (+0000) Subject: Make error messages slightly less opaque X-Git-Tag: 1.5.0b1~387 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a2989e038b55b7b493367aeefeb6d4cc405ebd39;p=postgis Make error messages slightly less opaque git-svn-id: http://svn.osgeo.org/postgis/trunk@4628 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/postgis/geography_measurement.c b/postgis/geography_measurement.c index 656694b35..6c02ad9f7 100644 --- a/postgis/geography_measurement.c +++ b/postgis/geography_measurement.c @@ -70,7 +70,7 @@ Datum geography_distance_sphere(PG_FUNCTION_ARGS) /* Something went wrong... should already be eloged */ if( distance < 0.0 ) { - elog(ERROR, "Error in geography_distance_sphere calculation."); + elog(ERROR, "lwgeom_distance_sphere returned < 0.0"); PG_RETURN_NULL(); } @@ -161,7 +161,7 @@ Datum geography_area_sphere(PG_FUNCTION_ARGS) /* Something went wrong... */ if( area < 0.0 ) { - elog(ERROR, "Error in geography_distance_sphere calculation."); + elog(ERROR, "lwgeom_area_sphere returned area < 0.0"); PG_RETURN_NULL(); }