From: Jonas Fonseca Date: Mon, 22 Mar 2010 01:10:57 +0000 (-0400) Subject: argv: move report call to format_arg method X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=915e5b745f64bf3e4d2e69c6c5e47b99b136a35a;p=tig.git argv: move report call to format_arg method --- diff --git a/tig.c b/tig.c index 2c353d5..826c3f9 100644 --- a/tig.c +++ b/tig.c @@ -3119,6 +3119,7 @@ format_arg(const char *name) if (!strncmp(name, vars[i].name, vars[i].namelen)) return *vars[i].value ? vars[i].value : vars[i].value_if_empty; + report("Unknown replacement: `%s`", name); return NULL; } @@ -3150,7 +3151,6 @@ format_argv(const char *dst_argv[], const char *src_argv[], enum format_flags fl value = format_arg(next); if (!value) { - report("Unknown replacement: `%s`", next); return FALSE; } }