Skip to content

Commit

Permalink
- Always check for error messages for translateModelFMU.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@25442 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adeas31 committed Apr 8, 2015
1 parent c05b369 commit d115a52
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions OMEdit/OMEditGUI/OMC/OMCProxy.cpp
Expand Up @@ -2060,9 +2060,8 @@ bool OMCProxy::translateModelFMU(QString className, double version, QString file
QString res = mpOMCInterface->translateModelFMU(className, QString::number(version), "me", fileNamePrefix);
if (res.compare("SimCode: The model " + className + " has been translated to FMU") == 0) {
result = true;
} else {
printMessagesStringInternal();
}
printMessagesStringInternal();
} catch(std::exception &exception) {
showException(exception);
printMessagesStringInternal();
Expand Down

0 comments on commit d115a52

Please sign in to comment.