From: Kevin Day Date: Wed, 15 Feb 2023 03:02:11 +0000 (-0600) Subject: Bugfix: Incorrect and confusing warning message in Featureless Make. X-Git-Tag: 0.6.4~53 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=ef36e3107ebfd08f51bcb62fbb4dcaf7e953053f;p=fll Bugfix: Incorrect and confusing warning message in Featureless Make. 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'. --- diff --git a/level_3/fake/c/private-print.c b/level_3/fake/c/private-print.c index ed6cc77..c989548 100644 --- a/level_3/fake/c/private-print.c +++ b/level_3/fake/c/private-print.c @@ -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);