replace: avoid using die() to indicate a bug
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 25 Apr 2018 09:54:06 +0000 (11:54 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 26 Apr 2018 03:52:58 +0000 (12:52 +0900)
We have the BUG() macro for that purpose.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/replace.c
index 245d3f4164e067abef37ae947431e862190ba14b..e345a5a0f1c815644cf5e41d1f52da619f2d20bc 100644 (file)
@@ -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);
        }
 }