From 7c6cd2e4a03b9a0730b6eae56556dbb1b586a0cb Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 27 Aug 2015 23:38:26 +0300 Subject: [PATCH] ok...more error message? --HG-- branch : develop --- src/app/valentina/mainwindow.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/app/valentina/mainwindow.cpp b/src/app/valentina/mainwindow.cpp index e3f443708..a7981b158 100644 --- a/src/app/valentina/mainwindow.cpp +++ b/src/app/valentina/mainwindow.cpp @@ -72,6 +72,8 @@ Q_LOGGING_CATEGORY(vMainWindow, "v.mainwindow") +#define OUT_FILE_ERROR vStdErr() << tr("File error: ") << e.ErrorMessage() << e.DetailedInformation() << "\n" + //--------------------------------------------------------------------------------------------------------------------- /** * @brief MainWindow constructor. @@ -305,7 +307,7 @@ bool MainWindow::LoadMeasurements(const QString &path) } else { - vStdErr() << tr("File error: ")<< e.MoreInformation() <<"\n"; + OUT_FILE_ERROR; } delete m; return false; @@ -3124,7 +3126,7 @@ bool MainWindow::LoadPattern(const QString &fileName, const QString& customMeasu } else { - vStdErr() << tr("File error.") << e.MoreInformation() << "\n"; + OUT_FILE_ERROR; } Clear(); return false;