Skip to content

Commit

Permalink
NumericExecutionPass: updated error code name of run-time exception
Browse files Browse the repository at this point in the history
  • Loading branch information
ppaulweber committed Feb 22, 2018
1 parent 88dccbf commit d7de3cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Codes.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ namespace libcasm_fe
CaseRuleMultipleDefaultCases = 0x5c00 // 5c** ... case errors

,
AssertInvalidExpression = 0x5a00 // 5a** ... assert errors
RuntimeException = 0x5a00

,
LetAssignedValueInvalid = 0x5d00
Expand Down
2 changes: 1 addition & 1 deletion src/execute/NumericExecutionPass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1427,7 +1427,7 @@ void ExecutionVisitor::invokeBuiltin(
node.sourceLocation(),
"builtin has thrown an exception: " + std::string( e.what() ),
m_frameStack.generateBacktrace( node.sourceLocation(), m_agentId ),
Code::AssertInvalidExpression );
Code::RuntimeException );
}
}

Expand Down

0 comments on commit d7de3cd

Please sign in to comment.