summaryrefslogtreecommitdiff
path: root/mailinfo.c
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2018-05-02 09:38:31 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-05-06 10:06:13 (GMT)
commitdde74d732fc3c5fa4bc4238aa935c164ff6c2dd5 (patch)
treec7e34c96fdafe12f71109b8730da4e1bad874cb6 /mailinfo.c
parenta86303cb5d5772364a3a5080d97be6f1a577be4c (diff)
downloadgit-dde74d732fc3c5fa4bc4238aa935c164ff6c2dd5.zip
git-dde74d732fc3c5fa4bc4238aa935c164ff6c2dd5.tar.gz
git-dde74d732fc3c5fa4bc4238aa935c164ff6c2dd5.tar.bz2
run-command: use BUG() to report bugs, not die()
The slightly misleading name die_bug() of the function intended to report a bug is actually called always, and only reports a bug if the passed-in parameter `err` is non-zero. It uses die_errno() to report the bug, to helpfully include the error message corresponding to `err`. However, as these messages indicate bugs, we really should use BUG(). And as BUG() is a macro to be able to report the exact file and line number, we need to convert die_bug() to a macro instead of only replacing the die_errno() by a call to BUG(). While at it, use a name more indicative of the purpose: CHECK_BUG(). Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'mailinfo.c')
0 files changed, 0 insertions, 0 deletions