Skip to content

Commit

Permalink
Improve logging text
Browse files Browse the repository at this point in the history
  • Loading branch information
magnesj committed Feb 29, 2024
1 parent 0eeaac1 commit ad8e2cb
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,15 @@ void RimPolygonFile::loadData()
m_polygons.deleteChildren();

m_polygons.setValue( polygonsFromFile );

if ( polygonsFromFile.empty() )
{
RiaLogging::warning( "No polygons found in file: " + m_fileName().path() );
}
else
{
RiaLogging::warning( QString( "Imported %1 polygons from file: " ).arg( polygonsFromFile.size() ) + m_fileName().path() );
}
}
}

Expand Down

0 comments on commit ad8e2cb

Please sign in to comment.