Преглед изворни кода

vlib: Vect_open_new(): call G_fatal_error() when name is invalid

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@56132 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa пре 12 година
родитељ
комит
825cb8bc36
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      lib/vector/Vlib/open.c

+ 2 - 2
lib/vector/Vlib/open.c

@@ -712,8 +712,8 @@ int open_new(struct Map_info *Map, const char *name, int with_z, int is_tmp)
 
     /* 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;
     }