diff --git a/src/page.h b/src/page.h index ff17c23..393fe89 100644 --- a/src/page.h +++ b/src/page.h @@ -3138,11 +3138,10 @@ public: cerr << "Error opening/accessing custom lmdb database: " << e.what() << endl; } - catch (...) + catch (std::exception& e) { - std::exception_ptr p = std::current_exception(); cerr << "Error opening/accessing custom lmdb database: " - << p.__cxa_exception_type()->name() << endl; + << e.what() << endl; }