From 303b3c1c4685c020f5d408c997f060a1f8530895 Mon Sep 17 00:00:00 2001 From: Emily Shaffer Date: Thu, 6 Feb 2020 16:48:33 -0800 Subject: submodule: add newline on invalid submodule error Since 'err' contains output for multiple submodules and is printed all at once by fetch_populated_submodules(), errors for each submodule should be newline separated for readability. The same strbuf is added to with a newline in the other half of the conditional where this error is detected, so make the two consistent. Signed-off-by: Emily Shaffer Signed-off-by: Junio C Hamano diff --git a/submodule.c b/submodule.c index 9da7181..a2e2239 100644 --- a/submodule.c +++ b/submodule.c @@ -1478,7 +1478,7 @@ static int get_next_submodule(struct child_process *cp, !is_empty_dir(ce->name)) { spf->result = 1; strbuf_addf(err, - _("Could not access submodule '%s'"), + _("Could not access submodule '%s'\n"), ce->name); } } -- cgit v0.10.2-6-g49f6