]> git.ipfire.org Git - thirdparty/git.git/commit
usage.c API users: use die_message() for error() + exit 128
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Tue, 7 Dec 2021 18:26:31 +0000 (19:26 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 7 Dec 2021 21:25:15 +0000 (13:25 -0800)
commitadcd4d4c6f9352bef53058161db36bb1ccd5cd9d
treea16a84bb6a05d9c19c00b30931bd2e29a6ea11a8
parente081a7c3b7290c50c817598e5f2686d068540762
usage.c API users: use die_message() for error() + exit 128

Continue the migration of code that printed a message and exited with
128. In this case the caller used "error()", so we'll be changing the
output from "error: " to "fatal: ". This change is intentional and
desired.

This code is dying, so it should emit "fatal", the only reason it
didn't do so was because before the existence of "die_message()" it
would have needed to craft its own "fatal: " message.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/notes.c