Re: [PATCH 1/2] help: make sure local html page exists before calling external processes
- From
Matthias Aßhauer <mha1993@live.de>
- Date
- Sep 13, 2021, 16:17 UTC
- Message-ID
- <AM0PR04MB6019F785D38C7F8B4F66BC08A5D99@AM0PR04MB6019.eurprd04.prod.outlook.com>
- In-Reply-To
- <CAPig+cS=fhE1Dm1ESps8SME9XO2+RPJ7LGtquuZQ5XPFB1uk3Q@mail.gmail.com>
On Mon, 13 Sep 2021, Eric Sunshine wrote:
Show 40 quoted lines
> On Mon, Sep 13, 2021 at 7:07 AM Matthias Aßhauer via GitGitGadget > <gitgitgadget@gmail.com> wrote: >> We already check that git.html exists, regardless of the page the user wants >> to open. Additionally checking wether the requested page exists gives us a > > s/wether/whether/ > >> smoother user experience when it doesn't. > >> When calling a git command and there is an error, most users reasonably expect >> git to produce an error message on the standard error stream, but in this case >> we pass the filepath to git web--browse wich passes it on to a browser (or a > > s/wich/which/ > >> helper programm like xdg-open or start that should in turn open a browser) > > s/programm/program/ > >> without any error and many GUI based browsers or helpers won't output such a >> message onto the standard error stream. >> >> Especialy the helper programs tend to show the corresponding error message in > > s/Especialy/Especially/ > >> a message box and wait for user input before exiting. This leaves users in >> interactive console sessions without an error message in their console, >> without a console prompt and without the help page they expected. >> >> The performance cost of the additional stat should be negliggible compared to > > s/negliggible/negligible/ > >> the two or more pocesses that we spawn after the checks. > > s/pocesses/processes/ > >> Signed-off-by: Matthias Aßhauer <mha1993@live.de> >
Thank you for pointing out this embarrassing amount of typos. I've fixed them for the next version.
Best regards
Matthias