summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon Williams <bmwill@google.com>2017-05-09 19:17:58 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-05-10 05:47:36 (GMT)
commit2c3b40799fcdb9d2dedc90134e4f3841af08bbe7 (patch)
treee06075d888628a093c4a85d2d4d667fb0566bb98
parentb06d3643105c8758ed019125a4399cb7efdcce2c (diff)
downloadgit-2c3b40799fcdb9d2dedc90134e4f3841af08bbe7.zip
git-2c3b40799fcdb9d2dedc90134e4f3841af08bbe7.tar.gz
git-2c3b40799fcdb9d2dedc90134e4f3841af08bbe7.tar.bz2
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>
-rw-r--r--pathspec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pathspec.c b/pathspec.c
index 50f76ff..904cfb7 100644
--- a/pathspec.c
+++ b/pathspec.c
@@ -555,7 +555,7 @@ static void init_pathspec_item(struct pathspec_item *item, unsigned flags,
* would trigger that.
*/
die_inside_submodule_path(item);
- die ("BUG: item->nowildcard_len > item->len || item->prefix > item->len)");
+ die ("BUG: error initializing pathspec_item");
}
}