summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-05-04 07:56:51 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-05-04 07:56:51 +0200
commitfeef3bd5c1562a52c274fa07af51c716e5362054 (patch)
treed10e9d19657a57dc494ada9c16b571821c56f3d7
parenta2ecf2a77a38025442da8150156e5b59f107b897 (diff)
downloadsink-feef3bd5c1562a52c274fa07af51c716e5362054.tar.gz
sink-feef3bd5c1562a52c274fa07af51c716e5362054.zip
Take sink down if we're not asserting
-rw-r--r--common/storage_lmdb.cpp1
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 }