1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-05-31 06:46:37 +02:00

unexpand: consolidate error messages

* src/unexpand.c (main): Use the same error
as in parse_tab_stops().
This commit is contained in:
Pádraig Brady
2026-04-29 11:11:36 +01:00
parent dc723665b5
commit 00cd91288c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -319,7 +319,7 @@ main (int argc, char **argv)
have_tabval = true;
}
if (!DECIMAL_DIGIT_ACCUMULATE (tabval, c - '0'))
error (EXIT_FAILURE, 0, _("tab stop value is too large"));
error (EXIT_FAILURE, 0, _("tab stop is too large"));
break;
}
}
+1 -1
View File
@@ -93,7 +93,7 @@ my @Tests =
# It is debatable whether this test should require an environment
# setting of e.g., _POSIX2_VERSION=1.
['obs-ovflo', "-$limits->{UINTMAX_OFLOW}", {IN=>''}, {OUT=>''},
{EXIT => 1}, {ERR => "$prog: tab stop value is too large\n"}],
{EXIT => 1}, {ERR => "$prog: tab stop is too large\n"}],
# Test input with backspaces '\b' ('bs1' is the baseline, without \b)