mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +00:00
Fix missing tefEXCEPTION handling in apply
This commit is contained in:
@@ -77,10 +77,25 @@ std::pair<TER, bool>
|
|||||||
apply (BasicView& view,
|
apply (BasicView& view,
|
||||||
STTx const& tx, ViewFlags flags,
|
STTx const& tx, ViewFlags flags,
|
||||||
Config const& config,
|
Config const& config,
|
||||||
beast::Journal journal)
|
beast::Journal j)
|
||||||
{
|
{
|
||||||
return invoke (tx.getTxnType(),
|
try
|
||||||
view, tx, flags, config, journal);
|
{
|
||||||
|
return invoke (tx.getTxnType(),
|
||||||
|
view, tx, flags, config, j);
|
||||||
|
}
|
||||||
|
catch(std::exception const& e)
|
||||||
|
{
|
||||||
|
JLOG(j.fatal) <<
|
||||||
|
"Caught exception: " << e.what();
|
||||||
|
return { tefEXCEPTION, false };
|
||||||
|
}
|
||||||
|
catch(...)
|
||||||
|
{
|
||||||
|
JLOG(j.fatal) <<
|
||||||
|
"Caught unknown exception";
|
||||||
|
return { tefEXCEPTION, false };
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} // ripple
|
} // ripple
|
||||||
|
|||||||
Reference in New Issue
Block a user