From a2989e038b55b7b493367aeefeb6d4cc405ebd39 Mon Sep 17 00:00:00 2001 From: Paul Ramsey Date: Thu, 8 Oct 2009 18:59:30 +0000 Subject: [PATCH] Make error messages slightly less opaque git-svn-id: http://svn.osgeo.org/postgis/trunk@4628 b70326c6-7e19-0410-871a-916f4a2858ee --- postgis/geography_measurement.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); } -- 2.50.1