summaryrefslogtreecommitdiffstats
path: root/src/ft_f_redir.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_f_redir.c')
-rw-r--r--src/ft_f_redir.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ft_f_redir.c b/src/ft_f_redir.c
index 997401a..2cd7d58 100644
--- a/src/ft_f_redir.c
+++ b/src/ft_f_redir.c
@@ -23,7 +23,8 @@ void
ft_f_redir(const char path[],
t_msh *msh)
{
- ft_dprintf(STDERR_FILENO, "minishell: %s: %s\n", path, strerror(errno));
+ ft_dprintf(STDERR_FILENO, "%s: %s: %s\n",
+ msh->shname, path, strerror(errno));
ft_lcom_clear(&msh->curr);
ft_s_destroy(msh);
exit(1);