list-objects-filter-options: error is localizeable
The "invalid filter-spec" message is user-facing and not a BUG, so make it localizeable. For reference, the message appears in this context: $ git rev-list --filter=blob:nonse --objects HEAD fatal: invalid filter-spec 'blob:nonse' Signed-off-by: Matthew DeVore <matvore@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Matthew DeVore committed
May 31, 2019 at 11:01 UTC
5c03bc8b1d1f992ebe43c567bb95cdb5e0273d28
1 file changed
+1
-1
list-objects-filter-options.c
+1
-1
@@ -84,7 +84,7 @@ static int gently_parse_list_objects_filter(
84
}
85
86
if (errbuf)
87
- strbuf_addf(errbuf, "invalid filter-spec '%s'", arg);
87
+ strbuf_addf(errbuf, _("invalid filter-spec '%s'"), arg);
88
89
memset(filter_options, 0, sizeof(*filter_options));
90
return 1;