Fix: compilatin error issue #2

https://github.com/moneroexamples/onion-monero-viewer/issues/2
This commit is contained in:
moneroexamples 2016-12-16 05:17:33 +08:00
parent ede2ad9556
commit d44e0ad385
1 changed files with 2 additions and 3 deletions

View File

@ -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;
}