diff --git a/platform/default/sqlite3.cpp b/platform/default/sqlite3.cpp index 498ac02b2..e33e7480a 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 67e3842ec..e6afc599c 100644 --- a/src/mbgl/util/thread_local.hpp +++ b/src/mbgl/util/thread_local.hpp @@ -1,7 +1,9 @@ #pragma once +#include #include +#include #include #include @@ -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); } }