From: Kevin Day Date: Sat, 17 Apr 2021 18:44:49 +0000 (-0500) Subject: Update: handle F_failure error in fll print function. X-Git-Tag: 0.5.3~36 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=7f4f07dd77eeab415af81500c7ba332cc8c0d85d;p=fll Update: handle F_failure error in fll print function. --- 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]);