[GRASS-SVN] r57658 - grass/branches/releasebranch_6_4/vector/v.clean/test

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Sep 13 18:51:43 PDT 2013


Author: hamish
Date: 2013-09-13 18:51:43 -0700 (Fri, 13 Sep 2013)
New Revision: 57658

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

Modified: grass/branches/releasebranch_6_4/vector/v.clean/test/topocheck.c
===================================================================
--- grass/branches/releasebranch_6_4/vector/v.clean/test/topocheck.c	2013-09-13 22:11:07 UTC (rev 57657)
+++ grass/branches/releasebranch_6_4/vector/v.clean/test/topocheck.c	2013-09-14 01:51:43 UTC (rev 57658)
@@ -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