diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-05-04 07:56:51 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-05-04 07:56:51 +0200 |
commit | feef3bd5c1562a52c274fa07af51c716e5362054 (patch) | |
tree | d10e9d19657a57dc494ada9c16b571821c56f3d7 | |
parent | a2ecf2a77a38025442da8150156e5b59f107b897 (diff) | |
download | sink-feef3bd5c1562a52c274fa07af51c716e5362054.tar.gz sink-feef3bd5c1562a52c274fa07af51c716e5362054.zip |
Take sink down if we're not asserting
-rw-r--r-- | common/storage_lmdb.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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: | |||
186 | if (p.isEmpty() || containsSpecialCharacter(p)) { | 186 | if (p.isEmpty() || containsSpecialCharacter(p)) { |
187 | SinkError() << "Tried to create a db with an invalid name. Hex:" << db.toHex() << " ASCII:" << db; | 187 | SinkError() << "Tried to create a db with an invalid name. Hex:" << db.toHex() << " ASCII:" << db; |
188 | Q_ASSERT(false); | 188 | Q_ASSERT(false); |
189 | throw std::runtime_error("Fatal error while creating db."); | ||
189 | } | 190 | } |
190 | } | 191 | } |
191 | } | 192 | } |