From d44e0ad385ef66a389a18184f2db2c397fc4ca76 Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Fri, 16 Dec 2016 05:17:33 +0800 Subject: [PATCH] Fix: compilatin error issue #2 https://github.com/moneroexamples/onion-monero-viewer/issues/2 --- src/page.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; }