]> Kevux Git Server - fll/commitdiff
Update: handle F_failure error in fll print function.
authorKevin Day <thekevinday@gmail.com>
Sat, 17 Apr 2021 18:44:49 +0000 (13:44 -0500)
committerKevin Day <thekevinday@gmail.com>
Sat, 17 Apr 2021 18:44:49 +0000 (13:44 -0500)
level_2/fll_error/c/private-error.c

index 47be928edd84068dea71f2d8a20fc19af5f6ea6a..f35b7345578eab53e07361e4b4141e40e2408707 100644 (file)
@@ -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]);