浏览代码

rasterlib: report reason when no temp files available

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@60148 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 11 年之前
父节点
当前提交
4bc91082ac
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lib/raster/open.c

+ 2 - 2
lib/raster/open.c

@@ -592,7 +592,7 @@ static int open_raster_new(const char *name, int open_mode,
 	G_free(mapset);
 	G_free(tempname);
 	G_free(map);
-	G_fatal_error(_("No temp files available"));
+	G_fatal_error(_("No temp files available: %s"), strerror(errno));
     }
 
     fd = new_fileinfo();
@@ -664,7 +664,7 @@ static int open_raster_new(const char *name, int open_mode,
 	G_free(fcb->mapset);
 	G_free(fcb->temp_name);
 	close(cell_fd);
-	G_fatal_error(_("no temp files available"));
+	G_fatal_error(_("No temp files available: %s"), strerror(errno));
     }
 
     fcb->null_temp_name = tempname;