Print error code when failed to open file on Windows

pull/556/head
Andrei Kortunov 5 years ago
parent 5a17d8e5a4
commit 75fed1d236

@ -261,7 +261,7 @@ void LowLevelFile::open (char const * filename)
if (handle == INVALID_HANDLE_VALUE)
{
std::ostringstream os;
os << "Failed to open '" << filename << "' for reading.";
os << "Failed to open '" << filename << "' for reading: " << GetLastError();
throw std::runtime_error (os.str ());
}

Loading…
Cancel
Save