feedback: make two error messages better match the option

And keep them identical.
master
Benno Schulenberg 2019-03-11 08:49:47 +01:00
parent f54f122637
commit 20514eca19
2 changed files with 2 additions and 2 deletions

View File

@ -2139,7 +2139,7 @@ int main(int argc, char **argv)
#endif
case 'J':
if (!parse_num(optarg, &stripe_column) || stripe_column <= 0) {
fprintf(stderr, _("Stripe column \"%s\" is invalid"), optarg);
fprintf(stderr, _("Guide column \"%s\" is invalid"), optarg);
fprintf(stderr, "\n");
exit(1);
}

View File

@ -1122,7 +1122,7 @@ void parse_rcfile(FILE *rcstream, bool syntax_only)
#ifndef NANO_TINY
if (strcasecmp(rcopts[i].name, "guidestripe") == 0) {
if (!parse_num(option, &stripe_column) || stripe_column <= 0) {
rcfile_error(N_("Edge column \"%s\" is invalid"), option);
rcfile_error(N_("Guide column \"%s\" is invalid"), option);
stripe_column = 0;
}
free(option);