Merge branch 'js/use-bug-macro'
Developer support update, by using BUG() macro instead of die() to
mark codepaths that should not happen more clearly.
* js/use-bug-macro:
BUG_exit_code: fix sparse "symbol not declared" warning
Convert remaining die*(BUG) messages
Replace all die("BUG: ...") calls by BUG() ones
run-command: use BUG() to report bugs, not die()
test-tool: help verifying BUG() code paths
This commit is contained in:
@ -495,7 +495,7 @@ static int is_a_merge(const struct commit *current_head)
|
||||
static void assert_split_ident(struct ident_split *id, const struct strbuf *buf)
|
||||
{
|
||||
if (split_ident_line(id, buf->buf, buf->len) || !id->date_begin)
|
||||
die("BUG: unable to parse our own ident: %s", buf->buf);
|
||||
BUG("unable to parse our own ident: %s", buf->buf);
|
||||
}
|
||||
|
||||
static void export_one(const char *var, const char *s, const char *e, int hack)
|
||||
|
||||
Reference in New Issue
Block a user