]> Kevux Git Server - fll/commitdiff
Bugfix: Printed error message is not utilize verbosity quite mode.
authorKevin Day <kevin@kevux.org>
Mon, 20 Feb 2023 06:11:26 +0000 (00:11 -0600)
committerKevin Day <kevin@kevux.org>
Mon, 20 Feb 2023 06:11:26 +0000 (00:11 -0600)
Also add appropriate color context.

level_3/fake/c/private-make-operate_validate_type.c

index 5070dc435d14d2cc5839df35b0a0146bebf927ac..f6dd3acb52b9268cf255d1a977618dde13564e68 100644 (file)
@@ -1380,7 +1380,15 @@ extern "C" {
       for (f_array_length_t i = 0; i < 33; ++i) {
 
         if (fl_string_dynamic_compare(reserved_name[i], data_make->cache_arguments.array[0]) == F_equal_to) {
-          fll_print_format("%r%[%QCannot assign a value to the parameter name '%r' because it is a reserved parameter name.%]%r", data_make->error.to.stream, f_string_eol_s, data_make->error.context, data_make->error.prefix, reserved_name[i], data_make->error.context, f_string_eol_s);
+          if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to.stream) {
+            flockfile(data_make->error.to.stream);
+
+            fl_print_format("%r%[%QCannot assign a value to the parameter name '%]", data_make->error.to.stream, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context);
+            fl_print_format("%[%Q%]", data_make->error.to.stream, data_make->error.notable, reserved_name[i], data_make->error.notable);
+            fl_print_format("%[' because it is a reserved parameter name.%]%r", data_make->error.to.stream, data_make->error.context, data_make->error.context, f_string_eol_s);
+
+            funlockfile(data_make->error.to.stream);
+          }
 
           status = F_status_set_error(F_failure);
         }