mirror of
https://github.com/etlegacy/Update-Installer.git
synced 2025-01-22 15:31:08 +00:00
Add error code from GetLastError() to IOException::what() message
This commit is contained in:
parent
50a21f004d
commit
f35d935eab
1 changed files with 4 additions and 0 deletions
|
@ -33,6 +33,10 @@ FileOps::IOException::IOException(const std::string& error)
|
|||
m_error += " details: " + std::string(strerror(m_errno));
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef PLATFORM_WINDOWS
|
||||
m_error += " GetLastError returned: " + intToStr(GetLastError());
|
||||
#endif
|
||||
}
|
||||
|
||||
FileOps::IOException::~IOException() throw ()
|
||||
|
|
Loading…
Reference in a new issue