Fix missing tefEXCEPTION handling in apply

This commit is contained in:
Vinnie Falco
2015-07-01 16:30:50 -07:00
parent 26bfeb1319
commit 3b6ea02920

View File

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