[GRASS-SVN] r57845 - grass/trunk/lib/vector/diglib
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Sep 26 11:39:38 PDT 2013
Author: martinl
Date: 2013-09-26 11:39:38 -0700 (Thu, 26 Sep 2013)
New Revision: 57845
Modified:
grass/trunk/lib/vector/diglib/spindex_rw.c
Log:
diglib: attempt to clarify 'wrong node position' fatal error message
Modified: grass/trunk/lib/vector/diglib/spindex_rw.c
===================================================================
--- grass/trunk/lib/vector/diglib/spindex_rw.c 2013-09-26 10:30:53 UTC (rev 57844)
+++ grass/trunk/lib/vector/diglib/spindex_rw.c 2013-09-26 18:39:38 UTC (rev 57845)
@@ -740,7 +740,9 @@
if (writeout) {
/* write node to sidx file */
if (G_ftell(fp->file) != nextfreepos)
- G_fatal_error("write sidx: wrong node position in file");
+ G_fatal_error("Unable to write spatial index. "
+ "Wrong node position (%"PRI_OFF_T") in file (should be %"PRI_OFF_T").",
+ G_ftell(fp->file), nextfreepos);
/* write with dig__fwrite_port_* fns */
dig__fwrite_port_I(&(s[top].sn->count), 1, fp);
@@ -855,8 +857,10 @@
if (writeout) {
/* write node to sidx file */
if (G_ftell(fp->file) != nextfreepos)
- G_fatal_error(_("Writing sidx: wrong node position in file"));
-
+ G_fatal_error("Unable to write spatial index. "
+ "Wrong node position (%"PRI_OFF_T") in file (should be %"PRI_OFF_T").",
+ G_ftell(fp->file), nextfreepos);
+
/* write with dig__fwrite_port_* fns */
dig__fwrite_port_I(&(s[top].sn.count), 1, fp);
dig__fwrite_port_I(&(s[top].sn.level), 1, fp);
More information about the grass-commit
mailing list