Bläddra i källkod

r.thin: msg standardization

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@65121 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 10 år sedan
förälder
incheckning
d9686720e8
1 ändrade filer med 3 tillägg och 3 borttagningar
  1. 3 3
      raster/r.thin/io.c

+ 3 - 3
raster/r.thin/io.c

@@ -125,14 +125,14 @@ int open_file(char *name)
     for (i = 0; i < PAD; i++) {
 	if (write(work_file, buf, buf_len) != buf_len) {
 	    unlink(work_file_name);
-	    G_fatal_error(_("Error writing temporary file"));
+	    G_fatal_error(_("Error writing temporary file <%s>"), work_file_name);
 	}
     }
     for (row = 0; row < n_rows; row++) {
 	Rast_get_c_row(cell_file, buf + PAD, row);
 	if (write(work_file, buf, buf_len) != buf_len) {
 	    unlink(work_file_name);
-	    G_fatal_error(_("Error writing temporary file"));
+	    G_fatal_error(_("Error writing temporary file <%s>"), work_file_name);
 	}
     }
 
@@ -141,7 +141,7 @@ int open_file(char *name)
     for (i = 0; i < PAD; i++) {
 	if (write(work_file, buf, buf_len) != buf_len) {
 	    unlink(work_file_name);
-	    G_fatal_error(_("Error writing temporary file"));
+	    G_fatal_error(_("Error writing temporary file <%s>"), work_file_name);
 	}
     }
     n_rows += (PAD << 1);