summaryrefslogtreecommitdiffstats
path: root/src/ft_f_fail.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ft_f_fail.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/ft_f_fail.c b/src/ft_f_fail.c
index aed16d0..3459702 100644
--- a/src/ft_f_fail.c
+++ b/src/ft_f_fail.c
@@ -19,7 +19,7 @@ static void
ft_write_fail(const char concern[],
const char msg[])
{
- ft_dprintf(STDERR_FILENO, "%s: %s\n", concern, msg);
+ ft_dprintf(STDERR_FILENO, "minishell: %s: %s\n", concern, msg);
}
void
@@ -29,6 +29,12 @@ void
}
void
+ ft_fail_too_many_args(const char concern[])
+{
+ ft_write_fail(concern, FT_FAIL_TOO_MANY_ARGS);
+}
+
+void
ft_fail_alloc(void)
{
ft_write_fail("minishell", FT_FAIL_ALLOC);