diff options
author | G. Branden Robinson <g.branden.robinson@gmail.com> | 2022-11-11 15:48:51 -0600 |
---|---|---|
committer | G. Branden Robinson <g.branden.robinson@gmail.com> | 2022-11-12 13:17:16 -0600 |
commit | acec1d96bd226698dcd5232b384f6b473e5a104e (patch) | |
tree | 03cf16cb794875ed4f281fea80342212c8aa89ea /NEWS | |
parent | 6838addc2924c45874e7f3f8ebaf46716c4c3613 (diff) | |
download | groff-git-acec1d96bd226698dcd5232b384f6b473e5a104e.tar.gz |
[afmtodit]: Handle fatal exits more idiomatically.
* src/utils/afmtodit/afmtodit.pl: Use our own fatal exit function
instead of Perl's "die".
(croak): New subroutine emits argument as part of diagnostic message
and exits with status 1.
(usage): Exit with status 2, not 1, on usage errors.
* NEWS: Document new exit behavior.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -604,6 +604,8 @@ o afmtodit no longer writes file names with directory information in them to the "name" directives of the font descriptions it generates. (The `fp` request no longer accepts such names; see "troff" above.) +o afmtodit now exits with status 2 (not 1) upon usage errors. + o pfbtops now exits with status 2 upon usage errors and the standard C library's `EXIT_FAILURE` status (usually 1) on operational failures instead of vice versa. |