--- a/src/documentmanager.cpp Thu Feb 23 20:06:22 2017 +0200 +++ b/src/documentmanager.cpp Thu Feb 23 20:18:39 2017 +0200 @@ -276,6 +276,7 @@ *numWarnings = 0; DocumentLoader* loader = new DocumentLoader {&model, m_loadingMainFile}; + connect(loader, SIGNAL(parseErrorMessage(QString)), this, SLOT(printParseErrorMessage(QString))); loader->read(input); loader->start(); @@ -291,6 +292,11 @@ *ok = not loader->hasAborted(); } +void DocumentManager::printParseErrorMessage(QString message) +{ + print(message); +} + LDDocument* DocumentManager::openDocument (QString path, bool search, bool implicit, LDDocument* fileToOverride, bool* aborted) {