[GRASS-SVN] r56132 - grass/trunk/lib/vector/Vlib
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun May 5 05:59:18 PDT 2013
Author: martinl
Date: 2013-05-05 05:59:18 -0700 (Sun, 05 May 2013)
New Revision: 56132
Modified:
grass/trunk/lib/vector/Vlib/open.c
Log:
vlib: Vect_open_new(): call G_fatal_error() when name is invalid
Modified: grass/trunk/lib/vector/Vlib/open.c
===================================================================
--- grass/trunk/lib/vector/Vlib/open.c 2013-05-05 09:30:48 UTC (rev 56131)
+++ grass/trunk/lib/vector/Vlib/open.c 2013-05-05 12:59:18 UTC (rev 56132)
@@ -712,8 +712,8 @@
/* check for [A-Za-z][A-Za-z0-9_]* in name */
if (Vect_legal_filename(name) < 0) {
- G_warning(_("Unable to create vector map <%s>: name is not SQL compliant"),
- name);
+ G_fatal_error(_("Unable to create vector map <%s>. Name is not SQL compliant."),
+ name);
return -1;
}
More information about the grass-commit
mailing list