Skip to content

Commit

Permalink
- Better error message for equationToExp failed
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@10999 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Feb 2, 2012
1 parent 1905f0a commit 0ddc057
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Compiler/BackEnd/BackendEquation.mo
Expand Up @@ -1157,6 +1157,7 @@ algorithm
list<DAE.Exp> explst;
list<DAE.ElementSource> sources;
DAE.ElementSource source;
String str;

case ((eqn as BackendDAE.RESIDUAL_EQUATION(exp=e,source=source),(v, arrayEqs,entrylst,explst,sources)))
equation
Expand Down Expand Up @@ -1186,8 +1187,9 @@ algorithm

case ((eqn,_))
equation
BackendDump.dumpEqns({eqn});
Error.addSourceMessage(Error.INTERNAL_ERROR,{"dlowEqToExp failed"},equationInfo(eqn));
str = BackendDump.equationStr(eqn);
str = "dlowEqToExp failed: " +& str;
Error.addSourceMessage(Error.INTERNAL_ERROR,{str},equationInfo(eqn));
then
fail();
end matchcontinue;
Expand Down

0 comments on commit 0ddc057

Please sign in to comment.