From: Bagas Sanjaya Date: Tue, 07 Sep 2021 08:18:08 GMT Subject: Re: [PATCH 2/3] Die if filter is attempted without a worktree Message-ID: In-Reply-To: <20210906181002.625647-2-calumlikesapplepie@gmail.com> On 07/09/21 01.10, Calum McConnell wrote: > + /* 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