Skip to content
This repository has been archived by the owner on May 18, 2019. It is now read-only.

Commit

Permalink
Provide more information for invalid roots
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoelund authored and OpenModelica-Hudson committed Apr 20, 2017
1 parent eb3f80f commit ac1663d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Compiler/Template/CodegenCFunctions.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -4951,7 +4951,7 @@ case BINARY(__) then
{
<%if acceptMetaModelicaGrammar()
then '<%generateThrow()%>;<%\n%>'
else 'throwStreamPrint(threadData, "Invalid root: (%g)^(%g)", <%tmp1%>, <%tmp2%>);<%\n%>'%>
else 'throwStreamPrint(threadData, "%s:%d: Invalid root: (%g)^(%g)", __FILE__, __LINE__, <%tmp1%>, <%tmp2%>);<%\n%>'%>
}
}
}
Expand All @@ -4963,7 +4963,7 @@ case BINARY(__) then
{
<%if acceptMetaModelicaGrammar()
then '<%generateThrow()%>;<%\n%>'
else 'throwStreamPrint(threadData, "Invalid root: (%g)^(%g)", <%tmp1%>, <%tmp2%>);<%\n%>'%>
else 'throwStreamPrint(threadData, "%s:%d: Invalid root: (%g)^(%g)", __FILE__, __LINE__, <%tmp1%>, <%tmp2%>);<%\n%>'%>
}
>>
'<%tmp3%>'
Expand Down

0 comments on commit ac1663d

Please sign in to comment.