Skip to content

Commit a6f219b

Browse files
authored
fix(log): unintuitive message for undefined $TMPDIR
1 parent 6696ea7 commit a6f219b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/nvim/fileio.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3276,7 +3276,11 @@ static void vim_mktempdir(void)
32763276
expand_env((char *)temp_dirs[i], tmp, TEMP_FILE_PATH_MAXLEN - 64);
32773277
if (!os_isdir(tmp)) {
32783278
if (strequal("$TMPDIR", temp_dirs[i])) {
3279-
WLOG("$TMPDIR tempdir not a directory (or does not exist): %s", tmp);
3279+
if (!os_getenv("TMPDIR")) {
3280+
WLOG("$TMPDIR is unset");
3281+
} else {
3282+
WLOG("$TMPDIR tempdir not a directory (or does not exist): \"%s\"", tmp);
3283+
}
32803284
}
32813285
continue;
32823286
}

0 commit comments

Comments
 (0)