mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-04 11:15:56 +00:00
Return error on rippleCalc exception
This commit is contained in:
@@ -149,7 +149,12 @@ RippleCalc::Output RippleCalc::rippleCalculate (
|
||||
{
|
||||
JLOG (j.error()) << "Exception from flow: " << e.what ();
|
||||
if (!useFlowV1Output)
|
||||
Rethrow();
|
||||
{
|
||||
// return a tec so the tx is stored
|
||||
path::RippleCalc::Output exceptResult;
|
||||
exceptResult.setResult(tecINTERNAL);
|
||||
return exceptResult;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user