Skip to content

Commit 2c3b407

Browse files
bmwillgitster
authored andcommitted
pathspec: provide a more descriptive die message
The current message displayed upon an internal error in 'init_pathspec_item()' isn't very descriptive and doesn't provide much context to where the error occurred. Update the error message to provide more context to where the error occured. Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent b06d364 commit 2c3b407

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pathspec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ static void init_pathspec_item(struct pathspec_item *item, unsigned flags,
555555
* would trigger that.
556556
*/
557557
die_inside_submodule_path(item);
558-
die ("BUG: item->nowildcard_len > item->len || item->prefix > item->len)");
558+
die ("BUG: error initializing pathspec_item");
559559
}
560560
}
561561

0 commit comments

Comments
 (0)