@matheusbsbs / matheus-bagliano / commits / 7c694024d4
Fork 0

sideband: mark "remote error:" prefix for translation

A Git client may produce a "remote error:" message (along with whatever error the other side sent us) in two places: - when we see an ERR packet - when we're using a sideband and see sideband 3 We can't reliably translate the message the other side sent us, but we can do so for our own prefix. However, we translate only the ERR-packet case but not the sideband-3 case. Let's make them consistent (by marking both for translation). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jeff King committed Aug 7, 2020 at 04:56 UTC 7c694024d4e119438a555469814e7d6ff0bac116
1 file changed +1 -1
sideband.c
+1 -1
@@ -147,7 +147,7 @@ int demultiplex_sideband(const char *me, char *buf, int len,
147 switch (band) {
148 case 3:
149 if (die_on_error)
150 - die("remote error: %s", buf + 1);
150 + die(_("remote error: %s"), buf + 1);
151 strbuf_addf(scratch, "%s%s", scratch->len ? "\n" : "",
152 DISPLAY_PREFIX);
153 maybe_colorize_sideband(scratch, buf + 1, len);