summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mbgl/util/thread_local.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mbgl/util/thread_local.hpp b/src/mbgl/util/thread_local.hpp
index 67e3842ec6..e6afc599ca 100644
--- a/src/mbgl/util/thread_local.hpp
+++ b/src/mbgl/util/thread_local.hpp
@@ -1,7 +1,9 @@
#pragma once
+#include <mbgl/util/logging.hpp>
#include <mbgl/util/noncopyable.hpp>
+#include <cassert>
#include <stdexcept>
#include <pthread.h>
@@ -29,7 +31,8 @@ public:
~ThreadLocal() {
if (pthread_key_delete(key)) {
- throw std::runtime_error("Failed to delete local storage key.");
+ Log::Error(Event::General, "Failed to delete local storage key.");
+ assert(false);
}
}