Re: [PATCH 2/3] Die if filter is attempted without a worktree
- From
Bagas Sanjaya <bagasdotme@gmail.com>
- Date
- Sep 7, 2021, 08:18 UTC
- Message-ID
- <a20bd60e-7445-131c-e9f3-548bc8dcf1f4@gmail.com>
- In-Reply-To
- <20210906181002.625647-2-calumlikesapplepie@gmail.com>
On 07/09/21 01.10, Calum McConnell wrote:
Show 5 quoted lines
> + /* The results of a nonexistent worktree could be... weird. Lets avoid*/
> + if(dict[1].value == NULL){
> + BUG("There is no worktree for this worktree substitution");
> + }
> +Why don't simply print that error message without BUG() (aka using die(_("message"))? It can be l10n-ed if you using the approach.
-- An old man doll... just what I always wanted! - Clara