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:
@ -398,7 +398,7 @@ static int check_updates(struct unpack_trees_options *o)
|
||||
|
||||
if (ce->ce_flags & CE_UPDATE) {
|
||||
if (ce->ce_flags & CE_WT_REMOVE)
|
||||
die("BUG: both update and delete flags are set on %s",
|
||||
BUG("both update and delete flags are set on %s",
|
||||
ce->name);
|
||||
display_progress(progress, ++cnt);
|
||||
ce->ce_flags &= ~CE_UPDATE;
|
||||
|
Reference in New Issue
Block a user