Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tjchern committed Sep 5, 2018
1 parent 719b19e commit 63dd34d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/org/tron/common/runtime/Runtime.java
Original file line number Diff line number Diff line change
Expand Up @@ -524,10 +524,12 @@ public void go() {
deposit.commit();
}
} catch (JVMStackOverFlowException e) {
program.spendAllEnergy();
result.setException(e);
runtimeError = result.getException().getMessage();
logger.error("runtime error is :{}", result.getException().getMessage());
} catch (OutOfResourceException e) {
program.spendAllEnergy();
result.setException(e);
runtimeError = result.getException().getMessage();
logger.error("runtime error is :{}", result.getException().getMessage());
Expand Down

0 comments on commit 63dd34d

Please sign in to comment.