mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
fix(log): unintuitive message for undefined $TMPDIR
This commit is contained in:
parent
6696ea7f10
commit
a6f219b06b
@ -3276,7 +3276,11 @@ static void vim_mktempdir(void)
|
||||
expand_env((char *)temp_dirs[i], tmp, TEMP_FILE_PATH_MAXLEN - 64);
|
||||
if (!os_isdir(tmp)) {
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user