db/Interface: Open() throws exception on error

This commit is contained in:
Max Kellermann
2016-03-18 22:17:46 +01:00
parent 6c2b532ae3
commit f55bdf07d3
7 changed files with 15 additions and 27 deletions

View File

@@ -136,10 +136,7 @@ try {
AtScopeExit(db) { delete db; };
if (!db->Open(error)) {
cerr << error.GetMessage() << endl;
return EXIT_FAILURE;
}
db->Open();
AtScopeExit(db) { db->Close(); };