Skip to content

Commit

Permalink
- Changed fail case in Algorithm.makeAssignment to use failtrace.
Browse files Browse the repository at this point in the history
- Updated test cases.


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@8126 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
perost committed Mar 7, 2011
1 parent 80505f9 commit a880771
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Compiler/FrontEnd/Algorithm.mo
Expand Up @@ -221,12 +221,12 @@ algorithm
/* failing */
case (lhs,lprop,rhs,rprop,_,_,source)
equation
Print.printErrorBuf("- Algorithm.makeAssignment failed\n");
Print.printErrorBuf(" ");
Print.printErrorBuf(ExpressionDump.printExpStr(lhs));
Print.printErrorBuf(" := ");
Print.printErrorBuf(ExpressionDump.printExpStr(rhs));
Print.printErrorBuf("\n");
true = RTOpts.debugFlag("failtrace");
Debug.traceln("- Algorithm.makeAssignment failed");
Debug.trace(" ");
Debug.trace(ExpressionDump.printExpStr(lhs));
Debug.trace(" := ");
Debug.traceln(ExpressionDump.printExpStr(rhs));
then
fail();
end matchcontinue;
Expand Down

0 comments on commit a880771

Please sign in to comment.