Skip to content

Commit

Permalink
Return error on rippleCalc exception
Browse files Browse the repository at this point in the history
  • Loading branch information
seelabs committed Jul 31, 2017
1 parent a79cb95 commit 458ac47
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/ripple/app/paths/RippleCalc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}

Expand Down

0 comments on commit 458ac47

Please sign in to comment.