Skip to content

Commit

Permalink
dump error messages only with failtrace for traverseBackendDAEExpsEqn…
Browse files Browse the repository at this point in the history
…sWithUpdate
  • Loading branch information
Willi Braun authored and OpenModelica-Hudson committed Mar 23, 2016
1 parent 80ab59a commit 02cbe35
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Compiler/BackEnd/BackendDAEUtil.mo
Expand Up @@ -6425,9 +6425,12 @@ algorithm
(_,outTypeA) = traverseArrayNoCopyWithUpdate(equOptArr,func,traverseBackendDAEExpsOptEqnWithUpdate,inTypeA);
then outTypeA;

else equation
(_, _, name) = System.dladdr(func);
Error.addInternalError("traverseBackendDAEExpsEqnsWithUpdate failed for " + name, sourceInfo());
else
equation
if Flags.isSet(Flags.FAILTRACE) then
(_, _, name) = System.dladdr(func);
Error.addInternalError("traverseBackendDAEExpsEqnsWithUpdate failed for " + name, sourceInfo());
end if;
then fail();
end matchcontinue;
end traverseBackendDAEExpsEqnsWithUpdate;
Expand Down

0 comments on commit 02cbe35

Please sign in to comment.