فهرست منبع

fix for last commit

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@42828 15284696-431f-4ddb-bdfa-cd5b030d7da7
Hamish Bowman 15 سال پیش
والد
کامیت
15695f61f3
1فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 3 2
      raster/r.terraflow/grass2str.h

+ 3 - 2
raster/r.terraflow/grass2str.h

@@ -175,8 +175,9 @@ stream2_CELL(AMI_STREAM<T>* str, dimension_type nrows, dimension_type ncols,
 
   /* open output raster map */
   int outfd;
-  if ( (outfd = Rast_open_new (cellname, mtype)) < 0) {
-  
+  if ( (outfd = Rast_open_new (cellname, mtype)) < 0)
+	G_fatal_error (_("Unable to create raster map <%s>"), cellname);
+
   /* Allocate output buffer */
   unsigned char *outrast;
   outrast = (unsigned char *)Rast_allocate_buf(mtype);