We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4cc6fd2 commit d22abb7Copy full SHA for d22abb7
tsl/platform/path.cc
@@ -20,6 +20,8 @@ limitations under the License.
20
#include <stdlib.h>
21
#include <sys/stat.h>
22
#include <sys/types.h>
23
+
24
+#include <cstring>
25
#if defined(PLATFORM_WINDOWS)
26
#include <windows.h>
27
#else
@@ -338,7 +340,8 @@ string GetTempFilename(const string& extension) {
338
340
fd = mkstemp(&tmp_filepath[0]);
339
341
}
342
if (fd < 0) {
- LOG(FATAL) << "Failed to create temp file.";
343
+ LOG(FATAL) << "Failed to create temp file " << tmp_filepath // Crash OK
344
+ << ", error: " << strerror(errno);
345
} else {
346
if (close(fd) < 0) {
347
LOG(ERROR) << "close() failed: " << strerror(errno);
0 commit comments