aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/pty_process_unix.c
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2021-03-28 12:59:03 -0400
committerJames McCoy <jamessan@jamessan.com>2021-04-08 08:13:39 -0400
commitce9b5848f9b5cec55997844ec54e8d4179391452 (patch)
treea1f81d365d5592cd065febdc31d6b996406ea126 /src/nvim/os/pty_process_unix.c
parent8caf8413080425f8ce53c5bacd232ed66a09fe55 (diff)
downloadrneovim-ce9b5848f9b5cec55997844ec54e8d4179391452.tar.gz
rneovim-ce9b5848f9b5cec55997844ec54e8d4179391452.tar.bz2
rneovim-ce9b5848f9b5cec55997844ec54e8d4179391452.zip
Add more info to debug messages
[skip ci]
Diffstat (limited to 'src/nvim/os/pty_process_unix.c')
-rw-r--r--src/nvim/os/pty_process_unix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/os/pty_process_unix.c b/src/nvim/os/pty_process_unix.c
index d794969ab5..36d6dbe2db 100644
--- a/src/nvim/os/pty_process_unix.c
+++ b/src/nvim/os/pty_process_unix.c
@@ -175,7 +175,7 @@ static void init_child(PtyProcess *ptyproc)
Process *proc = (Process *)ptyproc;
if (proc->cwd && os_chdir(proc->cwd) != 0) {
- ELOG("chdir failed: %s", strerror(errno));
+ ELOG("chdir(%s) failed: %s", proc->cwd, strerror(errno));
return;
}
@@ -184,7 +184,7 @@ static void init_child(PtyProcess *ptyproc)
assert(proc->env);
environ = tv_dict_to_env(proc->env);
execvp(prog, proc->argv);
- ELOG("execvp failed: %s: %s", strerror(errno), prog);
+ ELOG("execvp(%s) failed: %s", prog, strerror(errno));
_exit(122); // 122 is EXEC_FAILED in the Vim source.
}