Export tool: show an error if file doesn't exist

This commit is contained in:
matlabbe
2021-03-09 14:06:33 -05:00
parent 351c659beb
commit 736c8aceae

View File

@@ -383,6 +383,12 @@ int main(int argc, char * argv[])
std::string dbPath = argv[argc-1];
if(!UFile::exists(dbPath))
{
UERROR("File \"%s\" doesn't exist!", dbPath.c_str());
return -1;
}
// Get parameters
ParametersMap parameters;
DBDriver * driver = DBDriver::create();