Commit 43dc7a7b authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

fs: win32: File: Cosmetics

parent ccea1324
......@@ -47,8 +47,8 @@ unsigned int File::lastModificationDate() const
if ( m_lastModificationDate == 0 )
{
struct _stat s;
if ( _stat( m_fullPath.c_str(), &s ) )
throw std::runtime_error( "Failed to get file stats" );
if ( _stat( m_fullPath.c_str(), &s ) != 0 )
throw std::runtime_error( "Failed to get " + m_fullPath + " file stats" );
m_lastModificationDate = s.st_mtime;
}
return m_lastModificationDate;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment