From: Johannes Sixt Date: Sat, 22 Jun 2024 07:08:42 GMT Subject: Re: [PATCH v3] pager: die when paging to non-existing command Message-ID: In-Reply-To: <6850f558-ad20-403a-ae1e-5b9826c53790@gmail.com> Am 22.06.24 um 01:31 schrieb Rubén Justo: > Let's make the error clear by aborting the process and return an error > so that the user can easily correct their mistake. > > This will be the result of the change: > > $ GIT_PAGER=non-existent t/test-terminal.perl git log | wc -c > error: cannot run non-existent: No such file or directory > fatal: unable to start the pager: 'non-existent' > 0 Not a big deal, but the error message cited here does not match the actual new text: > if (start_command(&pager_process)) > - return; > + die("unable to execute pager '%s'", pager); -- Hannes