Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
- Added getErrorString after every command except quit().

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@22658 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adeas31 committed Oct 7, 2014
1 parent 126e985 commit 79e29af
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion OMEdit/OMEditGUI/OMC/OMCProxy.cpp
Expand Up @@ -214,7 +214,11 @@ void OMCProxy::writeCommandsMosFile(QString expression)
{
if (mCommandsLogFileTextStream.device())
{
mCommandsLogFileTextStream << expression << ";\n";
if (expression.compare("quit()") == 0) {
mCommandsLogFileTextStream << expression << ";\n";
} else {
mCommandsLogFileTextStream << expression << "; getErrorString();\n";
}
mCommandsLogFileTextStream.flush();
}
}
Expand Down

0 comments on commit 79e29af

Please sign in to comment.