mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-19 10:35:50 +00:00
Fix missing tefEXCEPTION handling in apply
This commit is contained in:
@@ -77,10 +77,25 @@ std::pair<TER, bool>
|
||||
apply (BasicView& view,
|
||||
STTx const& tx, ViewFlags flags,
|
||||
Config const& config,
|
||||
beast::Journal journal)
|
||||
beast::Journal j)
|
||||
{
|
||||
return invoke (tx.getTxnType(),
|
||||
view, tx, flags, config, journal);
|
||||
try
|
||||
{
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user