git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] graph: improve grammar of "invalid color" error message

From
Junio C Hamano <gitster@pobox.com>
Date
May 10, 2021, 06:10 UTC
Message-ID
<xmqqy2cnqftm.fsf@gitster.g>
In-Reply-To
<CAPig+cTm7rW7V2DasW2XTArHAY_91rxxm5QaF31U8rB1ZLXOvQ@mail.gmail.com>
Eric Sunshine <sunshine@sunshineco.com> writes:
Show 14 quoted lines
> On Sun, May 9, 2021 at 5:23 PM Alex Henrie <alexhenrie24@gmail.com> wrote:
>> Without the "d", it sounds like a command, not an error, and is liable
>> to be translated incorrectly.
>>
>> Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
>> ---
>> diff --git a/graph.c b/graph.c
>> @@ -95,7 +95,7 @@ static void parse_graph_colors_config(struct strvec *colors, const char *string)
>> -                       warning(_("ignore invalid color '%.*s' in log.graphColors"),
>> +                       warning(_("ignored invalid color '%.*s' in log.graphColors"),
>
> Another possibility: "ignoring invalid color ... in ..."
>
> Even better: "invalid color ... in ..."

The last one, if it does not say what we did to that invalid thing, is not as helpful as Alex's or your "another possibility".

Betweein "ignored" vs "ignoring", I do not have a preference, but whichever one is more prevalent in our existing messages should be used, I would think.

Thanks.
Previous: Alex Henrie
Message 4 of 4 in “graph: improve grammar of "invalid color" error message”
  1. graph: improve grammar of "invalid color" error messageAlex Henrie, May 9, 2021
  2. Eric SunshineMay 9, 2021
  3. Alex HenrieMay 9, 2021
  4. Junio C HamanoMay 10, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.