Skip to content

Commit

Permalink
- Fixing a bug where error messages are sometimes printed out even th…
Browse files Browse the repository at this point in the history
…ough they shouldn't.

  + This occured in instBasictypeBaseclass2 because noone made an ErrorExt checkpoint before trying to roll back the message.


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@5103 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Mar 9, 2010
1 parent a74698e commit 8f0ca7e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Compiler/Inst.mo
Expand Up @@ -3611,6 +3611,7 @@ algorithm
case (cache,env,ih,store,{SCode.EXTENDS(baseClassPath = path,modifications = mod)},inSCodeElementLst3,mods,inst_dims)
equation
true = (listLength(inSCodeElementLst3) > 0);
ErrorExt.setCheckpoint();
instBasictypeBaseclass2(cache,env,ih,store,inSCodeElementLst2,inSCodeElementLst3,mods,inst_dims);
then
fail();
Expand Down Expand Up @@ -3679,7 +3680,7 @@ Handles the fail case rollbacks/deleteCheckpoint of errors.
b2 = Types.arrayType(ty);
true = boolOr(b1, b2);
classname = Env.printEnvPathStr(env);
ErrorExt.rollBack();
ErrorExt.rollBack();
Error.addMessage(Error.INHERIT_BASIC_WITH_COMPS, {classname});
then
();
Expand Down

0 comments on commit 8f0ca7e

Please sign in to comment.