Skip to content

Commit

Permalink
Read the parser error instead of file error
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed Apr 20, 2020
1 parent d36a528 commit da6919f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OMEdit/OMEditLIB/Plotting/VariablesWidget.cpp
Expand Up @@ -615,7 +615,7 @@ void VariablesTreeModel::insertVariablesItems(QString fileName, QString filePath
result = parser.parse(&infoFile, &ok).toMap();
if (!ok) {
MessagesWidget::instance()->addGUIMessage(MessageItem(MessageItem::Modelica, GUIMessages::getMessage(GUIMessages::ERROR_OPENING_FILE).arg(infoFile.fileName())
.arg(infoFile.errorString()), Helper::scriptingKind, Helper::errorLevel));
.arg(parser.errorString()), Helper::scriptingKind, Helper::errorLevel));
return;
}
QVariantMap vars = result["variables"].toMap();
Expand Down

0 comments on commit da6919f

Please sign in to comment.