diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-25 15:41:44 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-25 15:41:44 +0200 |
commit | f8bb8b120e6d8a207d1e34d139ecbb30653f36d6 (patch) | |
tree | fa9827b6f179035328fabfafee1e014ba31195a3 /src/ft_f_fail.c | |
parent | strerror is nice actually (diff) | |
download | 42-minishell-f8bb8b120e6d8a207d1e34d139ecbb30653f36d6.tar.gz 42-minishell-f8bb8b120e6d8a207d1e34d139ecbb30653f36d6.tar.bz2 42-minishell-f8bb8b120e6d8a207d1e34d139ecbb30653f36d6.tar.xz 42-minishell-f8bb8b120e6d8a207d1e34d139ecbb30653f36d6.tar.zst 42-minishell-f8bb8b120e6d8a207d1e34d139ecbb30653f36d6.zip |
Nice redirs
Diffstat (limited to '')
-rw-r--r-- | src/ft_f_fail.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ft_f_fail.c b/src/ft_f_fail.c index 621702b..b43281d 100644 --- a/src/ft_f_fail.c +++ b/src/ft_f_fail.c @@ -12,7 +12,10 @@ #include <libft.h> #include <stdlib.h> +#include <string.h> #include <unistd.h> +#include <errno.h> + #include "ft_d_define.h" static void @@ -45,6 +48,6 @@ void void ft_fail_alloc(void) { - ft_write_fail("minishell", FT_FAIL_ALLOC); + ft_write_fail("minishell", strerror(errno)); exit(FT_RET_ALLOC); } |