From: Paul Ramsey Date: Wed, 7 Oct 2015 18:35:08 +0000 (+0000) Subject: Slightly more useful error message from geohash X-Git-Tag: 2.2.0~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=68edf253a7a7550236280a4de96f03a20198de12;p=postgis Slightly more useful error message from geohash git-svn-id: http://svn.osgeo.org/postgis/trunk@14206 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/liblwgeom/lwalgorithm.c b/liblwgeom/lwalgorithm.c index 3340c2d34..37a711536 100644 --- a/liblwgeom/lwalgorithm.c +++ b/liblwgeom/lwalgorithm.c @@ -835,7 +835,9 @@ char *lwgeom_geohash(const LWGEOM *lwgeom, int precision) /* Return error if we are being fed something outside our working bounds */ if ( gbox.xmin < -180 || gbox.ymin < -90 || gbox.xmax > 180 || gbox.ymax > 90 ) { - lwerror("Geohash requires inputs in decimal degrees."); + lwerror("Geohash requires inputs in decimal degrees, got (%g %g, %g %g).", + gbox.xmin, gbox.ymin, + gbox.xmax, gbox.ymax); return NULL; }