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

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

From
Alex Henrie <alexhenrie24@gmail.com>
Date
May 9, 2021, 23:06 UTC
Message-ID
<CAMMLpeRFjHNCUqzRhJZDuUA_CxsNvR-gn4-Mb6kmNQSZ4L8y6g@mail.gmail.com>
In-Reply-To
<CAPig+cTm7rW7V2DasW2XTArHAY_91rxxm5QaF31U8rB1ZLXOvQ@mail.gmail.com>
On Sun, May 9, 2021 at 4:03 PM Eric Sunshine <sunshine@sunshineco.com> wrote:
Show 15 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 ..."
Any of those would be fine. I don't have a strong opinion.
-Alex
Previous: Eric SunshineNext: Junio C Hamano
Message 3 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.