Browse Source

v.in.ogr: check return code for Vect_close (related to PostGIS Topology)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@60553 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 11 years ago
parent
commit
562e3ac686
1 changed files with 2 additions and 1 deletions
  1. 2 1
      vector/v.in.ogr/main.c

+ 2 - 1
vector/v.in.ogr/main.c

@@ -1503,7 +1503,8 @@ int main(int argc, char *argv[])
     }
 
     delete_table = Vect_maptype(&Map) != GV_FORMAT_NATIVE;
-    Vect_close(&Map);
+    if (0 != Vect_close(&Map))
+        G_fatal_error(_("Import failed"));
 
     /* create index - may fail on non-unique categories */
     if (db_create_index2(driver, Fi->table, key_column) != DB_OK)