Improve reporting of missing node exceptions

This commit is contained in:
Nik Bougalis
2020-04-12 01:53:32 -07:00
parent b7631d2a28
commit bdd22e4d51
10 changed files with 44 additions and 90 deletions

View File

@@ -277,10 +277,10 @@ private:
{
hash = hashOfSeq(*ledger, index, j_);
}
catch (SHAMapMissingNode &)
catch (SHAMapMissingNode const& mn)
{
JLOG (j_.warn()) <<
"Node missing from ledger " << ledger->info().seq;
"Ledger #" << ledger->info().seq << ": " << mn.what();
app_.getInboundLedgers().acquire (
ledger->info().hash, ledger->info().seq,
InboundLedger::Reason::GENERIC);