Browse Source

Merge pull request #3453

96e5f61 extend std::exception logging in txdb.cpp (Philip Kaufmann)
0.10
Wladimir J. van der Laan 11 years ago
parent
commit
6e7792003b
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 4
      src/txdb.cpp

4
src/txdb.cpp

@ -148,7 +148,7 @@ bool CCoinsViewDB::GetStats(CCoinsStats &stats) {
} }
pcursor->Next(); pcursor->Next();
} catch (std::exception &e) { } catch (std::exception &e) {
return error("%s() : deserialize error", __PRETTY_FUNCTION__); return error("%s : Deserialize or I/O error - %s", __PRETTY_FUNCTION__, e.what());
} }
} }
delete pcursor; delete pcursor;
@ -226,7 +226,7 @@ bool CBlockTreeDB::LoadBlockIndexGuts()
break; // if shutdown requested or finished loading block index break; // if shutdown requested or finished loading block index
} }
} catch (std::exception &e) { } catch (std::exception &e) {
return error("%s() : deserialize error", __PRETTY_FUNCTION__); return error("%s : Deserialize or I/O error - %s", __PRETTY_FUNCTION__, e.what());
} }
} }
delete pcursor; delete pcursor;

Loading…
Cancel
Save