]> granicus.if.org Git - postgis/commitdiff
Fix elog error
authorPaul Ramsey <pramsey@cleverelephant.ca>
Sat, 7 Mar 2015 15:29:07 +0000 (15:29 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Sat, 7 Mar 2015 15:29:07 +0000 (15:29 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@13325 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/lwgeom_dump.c

index 44511bd8afb9548fe080a2c44efff11d303e96d7..212d1af566429b216f726e23ef6eeaea35ab3b2b 100644 (file)
@@ -226,7 +226,7 @@ Datum LWGEOM_dump_rings(PG_FUNCTION_ARGS)
                pglwgeom = PG_GETARG_GSERIALIZED_P_COPY(0);
                if ( gserialized_get_type(pglwgeom) != POLYGONTYPE )
                {
-                       lwerror("Input is not a polygon");
+                       elog(ERROR, "Input is not a polygon");
                }
 
                lwgeom = lwgeom_from_gserialized(pglwgeom);
@@ -316,7 +316,7 @@ Datum ST_Subdivide(PG_FUNCTION_ARGS)
 {
 #if POSTGIS_GEOS_VERSION < 35
 
-       elog(ERROR, ("The GEOS version this PostGIS binary "
+       elog(ERROR, "The GEOS version this PostGIS binary "
                "was compiled against (%d) doesn't support "
                "'%s' function (3.5.0+ required)",
                POSTGIS_GEOS_VERSION, __func__);