planetfederal / geogig-py

A Python library to use GeoGit
BSD 3-Clause "New" or "Revised" License
24 stars 14 forks source link

Import with a non-existent shapefile should throw error #16

Closed jj0hns0n closed 9 years ago

jj0hns0n commented 10 years ago

Right now, no error is thrown when you attempt to import from a non-existent shapefile and then a commit fails with "Nothing to commit after ..." ... We should make sure that all failed imports throw an error.

volaya commented 10 years ago

I would say that this is a geogit issue. When the file does not exist, geogit does not exist with non-zero exit code, but instead it shows a "file not found, Skipping..." message. I think that it should fails instead of just skip the wrong file.

Geogit-py would autoatically raise an exception if the import command exists with non-zero exit code