summaryrefslogtreecommitdiff
path: root/src/shell_manager.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/shell_manager.cc')
-rw-r--r--src/shell_manager.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shell_manager.cc b/src/shell_manager.cc
index ac0eb43b..96cfb063 100644
--- a/src/shell_manager.cc
+++ b/src/shell_manager.cc
@@ -134,7 +134,7 @@ pid_t spawn_shell(const char* shell, StringView cmdline,
execve(shell, (char* const*)execparams.data(), (char* const*)envptrs.data());
char buffer[1024];
- write(STDERR_FILENO, format_to(buffer, "execve failed: {}\n", errno));
+ write(STDERR_FILENO, format_to(buffer, "execve failed: {}\n", strerror(errno)));
_exit(-1);
return -1;
}