Просмотр исходного кода

fix for last commit

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@42828 15284696-431f-4ddb-bdfa-cd5b030d7da7
Hamish Bowman 15 лет назад
Родитель
Сommit
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);