浏览代码

vlib: Vect__open_old(): call G_fatal_error() when vector map is not found

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@56004 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 12 年之前
父节点
当前提交
0e9d06c548
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      lib/vector/Vlib/open.c

+ 4 - 4
lib/vector/Vlib/open.c

@@ -224,11 +224,11 @@ int Vect__open_old(struct Map_info *Map, const char *name, const char *mapset,
             fmapset = G_find_vector2(Map->name, Map->mapset);
             if (fmapset == NULL) {
                 if (mapset && strcmp(mapset, G_mapset()) == 0)
-                    G_warning(_("Vector map <%s> not found in current mapset"),
-                              Vect_get_name(Map));
+                    G_fatal_error(_("Vector map <%s> not found in current mapset"),
+                                  Vect_get_name(Map));
                 else
-                    G_warning(_("Vector map <%s> not found"),
-                              Vect_get_full_name(Map));
+                    G_fatal_error(_("Vector map <%s> not found"),
+                                  Vect_get_full_name(Map));
                 return -1;
             }
             Map->mapset = G_store(fmapset);