Return error on rippleCalc exception

This commit is contained in:
seelabs
2017-07-19 13:32:05 -04:00
parent a79cb95c85
commit 458ac470aa

View File

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