This commit is contained in:
Lalit-L 2025-02-07 02:17:10 +00:00 committed by GitHub
commit 5d645d566e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1078,7 +1078,7 @@ class CapturedStream {
0, // Generate unique file name.
temp_file_path);
GTEST_CHECK_(success != 0)
<< "Unable to create a temporary file in " << temp_dir_path;
<< "Unable to create a temporary file in " << temp_dir_path << ". Error Message: " << ::GetLastError();
const int captured_fd = creat(temp_file_path, _S_IREAD | _S_IWRITE);
GTEST_CHECK_(captured_fd != -1)
<< "Unable to open temporary file " << temp_file_path;