[GRASS-SVN] r72267 - grass/trunk/lib/raster

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Feb 21 13:13:25 PST 2018


Author: mmetz
Date: 2018-02-21 13:13:25 -0800 (Wed, 21 Feb 2018)
New Revision: 72267

Modified:
   grass/trunk/lib/raster/get_row.c
Log:
libraster: more informative messages when reading/writing null files

Modified: grass/trunk/lib/raster/get_row.c
===================================================================
--- grass/trunk/lib/raster/get_row.c	2018-02-21 19:57:07 UTC (rev 72266)
+++ grass/trunk/lib/raster/get_row.c	2018-02-21 21:13:25 UTC (rev 72267)
@@ -827,12 +827,12 @@
     unsigned char *compressed_buf;
 
     if (lseek(null_fd, t1, SEEK_SET) < 0)
-	G_fatal_error(_("Error reading null data for row %d of <%s>"),
+	G_fatal_error(_("Error seeking compressed null data for row %d of <%s>"),
 		      row, fcb->name);
 
     if (readamount == size) {
 	if (read(null_fd, flags, size) != size) {
-	    G_fatal_error(_("Error reading null data for row %d of <%s>"),
+	    G_fatal_error(_("Error reading compressed null data for row %d of <%s>"),
 			  row, fcb->name);
 	}
 	return 1;
@@ -842,7 +842,7 @@
 
     if (read(null_fd, compressed_buf, readamount) != readamount) {
 	G_free(compressed_buf);
-	G_fatal_error(_("Error reading null data for row %d of <%s>"),
+	G_fatal_error(_("Error reading compressed null data for row %d of <%s>"),
 		      row, fcb->name);
     }
 
@@ -882,7 +882,7 @@
     offset = (off_t) size * R;
 
     if (lseek(null_fd, offset, SEEK_SET) < 0)
-	G_fatal_error(_("Error reading null row %d for <%s>"), R, fcb->name);
+	G_fatal_error(_("Error seeking null row %d for <%s>"), R, fcb->name);
 
     if (read(null_fd, flags, size) != size)
 	G_fatal_error(_("Error reading null row %d for <%s>"), R, fcb->name);



More information about the grass-commit mailing list