summaryrefslogtreecommitdiff
path: root/test/DumpDatabase.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2016-03-18 22:17:46 +0100
committerMax Kellermann <max@duempel.org>2016-03-19 00:05:11 +0100
commitf55bdf07d38652ba1eeab4ba4016ed5c6267d692 (patch)
tree0f626d19a43094f19cd7b2b8f3ec1515ca9e6fb3 /test/DumpDatabase.cxx
parent6c2b532ae3c0987ca7f5ce9a6994617959cac20e (diff)
db/Interface: Open() throws exception on error
Diffstat (limited to 'test/DumpDatabase.cxx')
-rw-r--r--test/DumpDatabase.cxx5
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(); };