From feef3bd5c1562a52c274fa07af51c716e5362054 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 4 May 2017 07:56:51 +0200 Subject: Take sink down if we're not asserting --- common/storage_lmdb.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/common/storage_lmdb.cpp b/common/storage_lmdb.cpp index b5698b1..e3685a5 100644 --- a/common/storage_lmdb.cpp +++ b/common/storage_lmdb.cpp @@ -186,6 +186,7 @@ public: if (p.isEmpty() || containsSpecialCharacter(p)) { SinkError() << "Tried to create a db with an invalid name. Hex:" << db.toHex() << " ASCII:" << db; Q_ASSERT(false); + throw std::runtime_error("Fatal error while creating db."); } } } -- cgit v1.2.3