mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-12 12:36:43 +00:00
Merge pull request #2650 from akortunov/encoding
Print error code when failed to open file on Windows
This commit is contained in:
commit
a5289035e2
1 changed files with 1 additions and 1 deletions
|
@ -261,7 +261,7 @@ void LowLevelFile::open (char const * filename)
|
||||||
if (handle == INVALID_HANDLE_VALUE)
|
if (handle == INVALID_HANDLE_VALUE)
|
||||||
{
|
{
|
||||||
std::ostringstream os;
|
std::ostringstream os;
|
||||||
os << "Failed to open '" << filename << "' for reading.";
|
os << "Failed to open '" << filename << "' for reading: " << GetLastError();
|
||||||
throw std::runtime_error (os.str ());
|
throw std::runtime_error (os.str ());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue