mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +00:00
fix(log): unintuitive message for undefined $TMPDIR
This commit is contained in:
@@ -3276,7 +3276,11 @@ static void vim_mktempdir(void)
|
|||||||
expand_env((char *)temp_dirs[i], tmp, TEMP_FILE_PATH_MAXLEN - 64);
|
expand_env((char *)temp_dirs[i], tmp, TEMP_FILE_PATH_MAXLEN - 64);
|
||||||
if (!os_isdir(tmp)) {
|
if (!os_isdir(tmp)) {
|
||||||
if (strequal("$TMPDIR", temp_dirs[i])) {
|
if (strequal("$TMPDIR", temp_dirs[i])) {
|
||||||
WLOG("$TMPDIR tempdir not a directory (or does not exist): %s", tmp);
|
if (!os_getenv("TMPDIR")) {
|
||||||
|
WLOG("$TMPDIR is unset");
|
||||||
|
} else {
|
||||||
|
WLOG("$TMPDIR tempdir not a directory (or does not exist): \"%s\"", tmp);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user