Skip to content

Commit

Permalink
- SCodeUtil: Give errors if Absyn to SCode fails
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@9215 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed May 31, 2011
1 parent 044d2d8 commit b2609f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Compiler/FrontEnd/SCodeUtil.mo
Expand Up @@ -175,8 +175,8 @@ algorithm

case (c as Absyn.CLASS(name = n,partialPrefix = p,finalPrefix = f,encapsulatedPrefix = e,restriction = r,body = d,info = file_info))
equation
true = RTOpts.debugFlag("translate");
Debug.fprintln("translate", "SCodeUtil.translateAbsyn2SCodeClass: Translating class failed:" +& n+&"\n");
n = "SCodeUtil.translateAbsyn2SCodeClass failed: " +& n;
Error.addSourceMessage(Error.INTERNAL_ERROR,{n},file_info);
then
fail();
end matchcontinue;
Expand Down

0 comments on commit b2609f2

Please sign in to comment.