diff options
author | Max Kellermann <max@duempel.org> | 2016-03-18 22:17:46 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2016-03-19 00:05:11 +0100 |
commit | f55bdf07d38652ba1eeab4ba4016ed5c6267d692 (patch) | |
tree | 0f626d19a43094f19cd7b2b8f3ec1515ca9e6fb3 /test/DumpDatabase.cxx | |
parent | 6c2b532ae3c0987ca7f5ce9a6994617959cac20e (diff) |
db/Interface: Open() throws exception on error
Diffstat (limited to 'test/DumpDatabase.cxx')
-rw-r--r-- | test/DumpDatabase.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/DumpDatabase.cxx b/test/DumpDatabase.cxx index 5032cab69..e673dc698 100644 --- a/test/DumpDatabase.cxx +++ b/test/DumpDatabase.cxx @@ -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(); }; |