Add error code from GetLastError() to IOException::what() message

This commit is contained in:
Robert Knight 2011-08-22 18:57:03 +01:00
parent 50a21f004d
commit f35d935eab

View file

@ -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 ()