Improve warning text

This commit is contained in:
Magne Sjaastad 2023-01-10 07:32:08 +01:00
parent a4123609d9
commit 0740bccd75

View File

@ -120,9 +120,11 @@ bool RifOpmCommonEclipseSummary::open( const QString& fileName, bool includeRest
} }
catch ( std::exception& e ) catch ( std::exception& e )
{ {
QString txt = QString( "Failed to create optimized summary file. Error text : %1" ).arg( e.what() ); if ( threadSafeLogger )
{
if ( threadSafeLogger ) threadSafeLogger->error( txt ); QString txt = QString( "Warning, could not open summary file : %1" ).arg( smspecFileName );
threadSafeLogger->warning( txt );
}
return false; return false;
} }