[GRASS-SVN] r62088 - grass/trunk/lib/vector/Vlib

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Sep 26 05:43:45 PDT 2014


Author: mmetz
Date: 2014-09-26 05:43:45 -0700 (Fri, 26 Sep 2014)
New Revision: 62088

Modified:
   grass/trunk/lib/vector/Vlib/open.c
Log:
Vlib: fix messages if open failed

Modified: grass/trunk/lib/vector/Vlib/open.c
===================================================================
--- grass/trunk/lib/vector/Vlib/open.c	2014-09-25 16:34:08 UTC (rev 62087)
+++ grass/trunk/lib/vector/Vlib/open.c	2014-09-26 12:43:45 UTC (rev 62088)
@@ -404,7 +404,7 @@
             if (!ogr_mapset) {
                 /* for direct OGR read access is built pseudo-topology on the fly */
                 G_warning(_("Unable to open vector map <%s> on level %d. "
-                            "Try to rebuild vector topology by v.build."),
+                            "Try to rebuild vector topology with v.build."),
                           Vect_get_full_name(Map), level_request);
                 return -1;
             }
@@ -421,13 +421,8 @@
             if (level >= 2) {   /* support files opened */
                 dig_free_plus(&(Map->plus));
             }
-            if (level_request == 0)
-                G_fatal_error(_("Unable to open vector map <%s>"),
-                              Vect_get_full_name(Map));
-            else
-                G_fatal_error(_("Unable to open vector map <%s> on level %d. "
-                                "Try to rebuild vector topology by v.build."),
-                              Vect_get_full_name(Map), level_request);
+	    G_fatal_error(_("Unable to open vector map <%s>"),
+			  Vect_get_full_name(Map));
             return -1;
         }
         if (ogr_mapset && !head_only && level_request != 1) {



More information about the grass-commit mailing list