diff options
-rw-r--r-- | platform/default/sqlite3.cpp | 2 | ||||
-rw-r--r-- | src/mbgl/util/thread_local.hpp | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/platform/default/sqlite3.cpp b/platform/default/sqlite3.cpp index 498ac02b2e..e33e7480a7 100644 --- a/platform/default/sqlite3.cpp +++ b/platform/default/sqlite3.cpp @@ -30,7 +30,7 @@ public: const int error = sqlite3_close(db); if (error != SQLITE_OK) { - throw Exception { error, sqlite3_errmsg(db) }; + mbgl::Log::Error(mbgl::Event::Database, "%s (Code %i)", sqlite3_errmsg(db), error); } } 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); } } |