feedback: make two error messages better match the option
And keep them identical.master
parent
f54f122637
commit
20514eca19
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue