@@ -268,7 +268,7 @@ static int bisect_write(const char *state, const char *rev,
} else if (one_of(state, terms->term_good, "skip", NULL)) {
strbuf_addf(&tag, "refs/bisect/%s-%s", state, rev);
} else {
- res = error(_("Bad bisect_write argument: %s"), state);
+ res = error(_("bad %s argument: %s"), "bisect_write", state);
goto finish;
}
@@ -5010,7 +5010,7 @@ static int diff_opt_color_moved(const struct option *opt,
} else {
int cm = parse_color_moved(arg);
if (cm < 0)
- return error(_("bad --color-moved argument: %s"), arg);
+ return error(_("bad %s argument: %s"), "--color-moved", arg);
options->color_moved = cm;
}
return 0;
@@ -5334,7 +5334,7 @@ static int diff_opt_word_diff(const struct option *opt,
else if (!strcmp(arg, "none"))
options->word_diff = DIFF_WORDS_NONE;
else
- return error(_("bad --word-diff argument: %s"), arg);
+ return error(_("bad %s argument: %s"), "--word-diff", arg);
} else {
if (options->word_diff == DIFF_WORDS_NONE)
options->word_diff = DIFF_WORDS_PLAIN;
@@ -470,7 +470,7 @@ void handle_ignore_submodules_arg(struct diff_options *diffopt,
else if (!strcmp(arg, "dirty"))
diffopt->flags.ignore_dirty_submodules = 1;
else if (strcmp(arg, "none"))
- die(_("bad --ignore-submodules argument: %s"), arg);
+ die(_("bad %s argument: %s"), "--ignore-submodules", arg);
/*
* Please update _git_status() in git-completion.bash when you
* add new options