浏览代码

Print failing map name to help with issue solving

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@54041 15284696-431f-4ddb-bdfa-cd5b030d7da7
Maris Nartiss 12 年之前
父节点
当前提交
3dd0ec32cc
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lib/raster/set_window.c

+ 2 - 2
lib/raster/set_window.c

@@ -155,7 +155,7 @@ static void update_window_mappings(void)
 	    continue;
 
 	if (fcb->open_mode == OPEN_OLD)
-	    G_fatal_error(_("Input window changed while maps are open for read"));
+	    G_fatal_error(_("Input window changed while maps are open for read. Map name <%s>"), fcb->name);
     }
 
     /* turn masking (back) on if necessary */
@@ -171,7 +171,7 @@ static void check_write_window(void)
 
 	if (fcb->open_mode == OPEN_NEW_UNCOMPRESSED ||
 	    fcb->open_mode == OPEN_NEW_COMPRESSED)
-	    G_fatal_error(_("Output window changed while maps are open for write"));
+	    G_fatal_error(_("Output window changed while maps are open for write. Map name <%s>"), fcb->name);
     }
 }