Skip to content

Commit 7c69402

Browse files
peffgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 47ae905 commit 7c69402

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sideband.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ int demultiplex_sideband(const char *me, char *buf, int len,
147147
switch (band) {
148148
case 3:
149149
if (die_on_error)
150-
die("remote error: %s", buf + 1);
150+
die(_("remote error: %s"), buf + 1);
151151
strbuf_addf(scratch, "%s%s", scratch->len ? "\n" : "",
152152
DISPLAY_PREFIX);
153153
maybe_colorize_sideband(scratch, buf + 1, len);

0 commit comments

Comments
 (0)