From e0af5375596a7c7a8294f350e3d35bad3320d39f Mon Sep 17 00:00:00 2001 From: David Blasby Date: Tue, 30 Apr 2002 23:37:47 +0000 Subject: [PATCH] Better error reporting. git-svn-id: http://svn.osgeo.org/postgis/trunk@143 b70326c6-7e19-0410-871a-916f4a2858ee --- Makefile | 4 ++-- postgis_transform.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 871c6596a..50152506c 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ endif test_db = geom_regress # set PG72 to 1 for postgres >= 7.2 -#PG72 = 1 +PG72 = 0 # shared library parameters NAME=postgis @@ -51,7 +51,7 @@ include $(top_srcdir)/src/Makefile.shlib $(NAME).sql: $(NAME).sql.in $(NAME)_gist_72.sql.in $(NAME)_gist.sql.in sed -e 's:@MODULE_FILENAME@:$(libdir)/$(shlib):g;s:@POSTGIS_VERSION@:$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION):g' < $(NAME).sql.in > $@ - if [ $(PG72) == 1 ]; then \ + if [ $(PG72) -eq 1 ]; then \ sed -e 's:@MODULE_FILENAME@:$(libdir)/$(shlib):g;s:@POSTGIS_VERSION@:$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION):g' < $(NAME)_gist_72.sql.in >> $(NAME).sql; \ else \ sed -e 's:@MODULE_FILENAME@:$(libdir)/$(shlib):g;s:@POSTGIS_VERSION@:$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION):g' < $(NAME)_gist.sql.in >> $(NAME).sql; \ diff --git a/postgis_transform.c b/postgis_transform.c index 285ca218a..3815e435b 100644 --- a/postgis_transform.c +++ b/postgis_transform.c @@ -193,7 +193,7 @@ Datum transform_geom(PG_FUNCTION_ARGS) { pfree(input_proj4); pfree(output_proj4); pj_free(input_pj); pj_free(output_pj); - elog(ERROR,"tranform: couldnt project point: %i (%s)",pj_errno,pj_errstr); + elog(ERROR,"tranform: couldnt project point: %i (%s)",pj_errno,pj_strerrno(pj_errno)); PG_RETURN_NULL(); } if (output_pj->is_latlong) -- 2.40.0