From 7f4f07dd77eeab415af81500c7ba332cc8c0d85d Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sat, 17 Apr 2021 13:44:49 -0500 Subject: [PATCH] Update: handle F_failure error in fll print function. --- level_2/fll_error/c/private-error.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/level_2/fll_error/c/private-error.c b/level_2/fll_error/c/private-error.c index 47be928..f35b734 100644 --- a/level_2/fll_error/c/private-error.c +++ b/level_2/fll_error/c/private-error.c @@ -112,6 +112,19 @@ extern "C" { return F_false; } + if (status == F_failure) { + if (print.verbosity != f_console_verbosity_quiet) { + fprintf(print.to.stream, "%c", f_string_eol_s[0]); + fprintf(print.to.stream, "%s%sFailure", print.context.before->string, print.prefix); + + private_fll_error_print_function(print, function); + + fprintf(print.to.stream, ".%s%c", print.context.after->string, f_string_eol_s[0]); + } + + return F_false; + } + if (fallback && print.verbosity != f_console_verbosity_quiet) { if (print.verbosity != f_console_verbosity_quiet) { fprintf(print.to.stream, "%c", f_string_eol_s[0]); -- 1.8.3.1