[GRASS-SVN] r64072 - grass/trunk/vector/v.to.db

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jan 12 03:10:36 PST 2015


Author: neteler
Date: 2015-01-12 03:10:35 -0800 (Mon, 12 Jan 2015)
New Revision: 64072

Modified:
   grass/trunk/vector/v.to.db/main.c
Log:
v.to.db: test exit status of Vect_open_old()

Modified: grass/trunk/vector/v.to.db/main.c
===================================================================
--- grass/trunk/vector/v.to.db/main.c	2015-01-12 08:38:13 UTC (rev 64071)
+++ grass/trunk/vector/v.to.db/main.c	2015-01-12 11:10:35 UTC (rev 64072)
@@ -55,7 +55,8 @@
 
     /* open map */
     Vect_set_open_level(2);
-    Vect_open_old(&Map, options.name, "");
+    if (Vect_open_old(&Map, options.name, "") < 0)
+	G_fatal_error(_("Unable to open vector map <%s>"), options.name);
     Vect_set_error_handler_io(&Map, NULL);
    
     Fi = Vect_get_field(&Map, options.field);



More information about the grass-commit mailing list