diff --git a/Compiler/BackEnd/BackendEquation.mo b/Compiler/BackEnd/BackendEquation.mo index a7145762cfa..5d76ac30832 100644 --- a/Compiler/BackEnd/BackendEquation.mo +++ b/Compiler/BackEnd/BackendEquation.mo @@ -1157,6 +1157,7 @@ algorithm list explst; list sources; DAE.ElementSource source; + String str; case ((eqn as BackendDAE.RESIDUAL_EQUATION(exp=e,source=source),(v, arrayEqs,entrylst,explst,sources))) equation @@ -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;