]> Kevux Git Server - fll/commitdiff
Bugfix: Incorrect and confusing warning message in Featureless Make.
authorKevin Day <kevin@kevux.org>
Wed, 15 Feb 2023 03:02:11 +0000 (21:02 -0600)
committerKevin Day <kevin@kevux.org>
Wed, 15 Feb 2023 03:20:53 +0000 (21:20 -0600)
The object name is being printed as if it were the fakefile.
The message itself is now re-worded to make more sense.

Use "fakefile" rather than 'file'.

level_3/fake/c/private-print.c

index ed6cc77c979f102374b87748c1cc675b274aaffc..c9895483062a04466d9551743114256b2cfe96dc 100644 (file)
@@ -603,10 +603,10 @@ extern "C" {
     flockfile(data->main->warning.to.stream);
 
     fl_print_format("%r%[%QThe fakefile '%]", data->main->warning.to.stream, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, data->main->warning.context);
-    fl_print_format("%[%r%]", data->main->warning.to.stream, data->main->warning.notable, name_object, data->main->warning.notable);
-    fl_print_format("%[' in the file '%]", data->main->warning.to.stream, data->main->warning.context, data->main->warning.context);
-    fl_print_format("%[%Q%]", data->main->warning.to.stream, data->main->warning.notable, path_file, data->main->warning.notable);
-    fl_print_format("%[' may only have a single property, only using the first.%]%r", data->main->warning.to.stream, data->main->warning.context, data->main->warning.context, f_string_eol_s);
+    fl_print_format("%[%r%]", data->main->warning.to.stream, data->main->warning.notable, path_file, data->main->warning.notable);
+    fl_print_format("%[' may only have a single content for the object '%]", data->main->warning.to.stream, data->main->warning.context, data->main->warning.context);
+    fl_print_format("%[%Q%]", data->main->warning.to.stream, data->main->warning.notable, name_object, data->main->warning.notable);
+    fl_print_format("%[', only using the first.%]%r", data->main->warning.to.stream, data->main->warning.context, data->main->warning.context, f_string_eol_s);
 
     funlockfile(data->main->warning.to.stream);
   }
@@ -621,7 +621,7 @@ extern "C" {
 
     fl_print_format("%r%[%QThe object '%]", data->main->warning.to.stream, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, data->main->warning.context);
     fl_print_format("%[%r%]", data->main->warning.to.stream, data->main->warning.notable, name_object, data->main->warning.notable);
-    fl_print_format("%[' in the file '%]", data->main->warning.to.stream, data->main->warning.context, data->main->warning.context);
+    fl_print_format("%[' in the fakefile '%]", data->main->warning.to.stream, data->main->warning.context, data->main->warning.context);
     fl_print_format("%[%Q%]", data->main->warning.to.stream, data->main->warning.notable, path_file, data->main->warning.notable);
     fl_print_format("%[' may only be specified once, only using the first.%]%r", data->main->warning.to.stream, data->main->warning.context, data->main->warning.context, f_string_eol_s);