+ /* 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