mirror of
https://github.com/etlegacy/Update-Installer.git
synced 2025-01-22 23:41:10 +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));
|
m_error += " details: " + std::string(strerror(m_errno));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef PLATFORM_WINDOWS
|
||||||
|
m_error += " GetLastError returned: " + intToStr(GetLastError());
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
FileOps::IOException::~IOException() throw ()
|
FileOps::IOException::~IOException() throw ()
|
||||||
|
|
Loading…
Reference in a new issue