diff --git a/components/files/lowlevelfile.cpp b/components/files/lowlevelfile.cpp index aff15777f..424527b9d 100644 --- a/components/files/lowlevelfile.cpp +++ b/components/files/lowlevelfile.cpp @@ -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 ()); }