]> granicus.if.org Git - postgis/commitdiff
Make error messages slightly less opaque
authorPaul Ramsey <pramsey@cleverelephant.ca>
Thu, 8 Oct 2009 18:59:30 +0000 (18:59 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Thu, 8 Oct 2009 18:59:30 +0000 (18:59 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4628 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/geography_measurement.c

index 656694b357d11a7610def9b4972b789928c20e0a..6c02ad9f774195915c7812f5ef802432ff0ce712 100644 (file)
@@ -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();
        }