(#537) (#515) Showing error messages from LAS file open exceptions

This commit is contained in:
Pål Hagen
2015-09-24 10:08:45 +02:00
parent f15c9973c9
commit 529b68e073
4 changed files with 23 additions and 9 deletions

View File

@@ -75,7 +75,7 @@ void RimWellLogFile::setFileName(const QString& fileName)
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
bool RimWellLogFile::readFile()
bool RimWellLogFile::readFile(QString* errorMessage)
{
if (!m_wellLogDataFile.p())
{
@@ -84,7 +84,7 @@ bool RimWellLogFile::readFile()
m_name = QFileInfo(m_fileName).fileName();
if (!m_wellLogDataFile->open(m_fileName))
if (!m_wellLogDataFile->open(m_fileName, errorMessage))
{
m_wellLogDataFile = NULL;
return false;