ok...more error message?

--HG--
branch : develop
This commit is contained in:
Alex 2015-08-27 23:38:26 +03:00
parent f87d0e6642
commit 7c6cd2e4a0

View File

@ -72,6 +72,8 @@
Q_LOGGING_CATEGORY(vMainWindow, "v.mainwindow") Q_LOGGING_CATEGORY(vMainWindow, "v.mainwindow")
#define OUT_FILE_ERROR vStdErr() << tr("File error: ") << e.ErrorMessage() << e.DetailedInformation() << "\n"
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
/** /**
* @brief MainWindow constructor. * @brief MainWindow constructor.
@ -305,7 +307,7 @@ bool MainWindow::LoadMeasurements(const QString &path)
} }
else else
{ {
vStdErr() << tr("File error: ")<< e.MoreInformation() <<"\n"; OUT_FILE_ERROR;
} }
delete m; delete m;
return false; return false;
@ -3124,7 +3126,7 @@ bool MainWindow::LoadPattern(const QString &fileName, const QString& customMeasu
} }
else else
{ {
vStdErr() << tr("File error.") << e.MoreInformation() << "\n"; OUT_FILE_ERROR;
} }
Clear(); Clear();
return false; return false;