[GRASS-SVN] r50192 - grass/trunk/vector/v.clean/test

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Jan 14 20:01:38 EST 2012


Author: hamish
Date: 2012-01-14 17:01:38 -0800 (Sat, 14 Jan 2012)
New Revision: 50192

Modified:
   grass/trunk/vector/v.clean/test/topocheck.c
Log:
simplify error message handling (merge from devbr6)

Modified: grass/trunk/vector/v.clean/test/topocheck.c
===================================================================
--- grass/trunk/vector/v.clean/test/topocheck.c	2012-01-15 01:00:41 UTC (rev 50191)
+++ grass/trunk/vector/v.clean/test/topocheck.c	2012-01-15 01:01:38 UTC (rev 50192)
@@ -27,7 +27,7 @@
     struct line_cats *Cats;
     int i, atype, with_z;
     int nlines, n;
-    char *mapset, errmsg[200];
+    char *mapset;
     struct GModule *module;
     struct Option *in_opt, *out_opt;
     struct Flag *poly_f;
@@ -59,10 +59,8 @@
     G_begin_cell_area_calculations();
 
     /* open input vector */
-    if ((mapset = G_find_vector2(in_opt->answer, "")) == NULL) {
-	sprintf(errmsg, "Could not find input map <%s>\n", in_opt->answer);
-	G_fatal_error(errmsg);
-    }
+    if ((mapset = G_find_vector2(in_opt->answer, "")) == NULL)
+	G_fatal_error(_("Vector map <%s> not found"), in_opt->answer);
 
     Vect_set_open_level(2);
     Vect_open_old(&In, in_opt->answer, mapset);



More information about the grass-commit mailing list