Skip to content
Snippets Groups Projects
Commit 0b31001b authored by Anh Nguyen-Tuong's avatar Anh Nguyen-Tuong
Browse files

Catch and print exceptions

parent d0fbdc6b
No related branches found
No related tags found
No related merge requests found
......@@ -183,11 +183,16 @@ int main(int argc, char **argv)
cout<<"Skipping (no changes) "<<this_file->GetURL()<<endl;
}
}
catch (DatabaseError_t pnide)
catch (const DatabaseError_t pnide)
{
cerr << programName << ": Unexpected database error: " << pnide << "file url: " << this_file->GetURL() << endl;
exit(1);
}
catch (const std::exception &e)
{
cerr << programName << ": Error: " << e.what() << endl;
exit(1);
}
catch (...)
{
cerr << programName << ": Unexpected error file url: " << this_file->GetURL() << endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment