diff --git a/src/app/valentina/mainwindow.cpp b/src/app/valentina/mainwindow.cpp index 416a48345..d3503ca43 100644 --- a/src/app/valentina/mainwindow.cpp +++ b/src/app/valentina/mainwindow.cpp @@ -3111,7 +3111,10 @@ void MainWindow::LoadPattern(const QString &fileName, const QString& customMeasu } catch (VException &e) { - e.CriticalMessageBox(tr("File error."), this); + if (qApp->CheckGUI()) + e.CriticalMessageBox(tr("File error."), this); + else + vStdErr() << tr("File error.") << e.MoreInformation() << "\n"; Clear(); return; }