From: Johannes Schindelin Date: Fri, 27 Apr 2018 21:39:36 GMT Subject: [PATCH v6 03/11] replace: avoid using die() to indicate a bug Message-ID: <05642a8fb58086c9cc638fec1b4e61ffa8cc7506.1524865158.git.johannes.schindelin@gmx.de> In-Reply-To: We have the BUG() macro for that purpose. Signed-off-by: Johannes Schindelin --- builtin/replace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/replace.c b/builtin/replace.c index 245d3f4164e..e345a5a0f1c 100644 --- a/builtin/replace.c +++ b/builtin/replace.c @@ -501,6 +501,6 @@ int cmd_replace(int argc, const char **argv, const char *prefix) return list_replace_refs(argv[0], format); default: - die("BUG: invalid cmdmode %d", (int)cmdmode); + BUG("invalid cmdmode %d", (int)cmdmode); } } -- 2.17.0.windows.1.33.gfcbb1fa0445