]> git.ipfire.org Git - thirdparty/git.git/blobdiff - wrapper.c
Start the 2.46 cycle
[thirdparty/git.git] / wrapper.c
index 7da15a56da614ce82ca1d6a5c6e2277b444f1063..f87d90bf5794a55418d657160f3c86735c1e4bd7 100644 (file)
--- a/wrapper.c
+++ b/wrapper.c
@@ -5,7 +5,6 @@
 #include "abspath.h"
 #include "parse.h"
 #include "gettext.h"
-#include "repository.h"
 #include "strbuf.h"
 #include "trace2.h"
 
@@ -671,7 +670,7 @@ int xsnprintf(char *dst, size_t max, const char *fmt, ...)
        va_end(ap);
 
        if (len < 0)
-               BUG("your snprintf is broken");
+               die(_("unable to format message: %s"), fmt);
        if (len >= max)
                BUG("attempt to snprintf into too-small buffer");
        return len;