mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 01:20:25 +08:00
Export tool: show an error if file doesn't exist
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user