friendly messages
Peter da Silva
peter at ficc.uu.net
Fri Mar 3 07:07:56 AEST 1989
Have you looked at the new "perror()" docs? They describe a 4-component
error message format for all programs to use, containing the name of the
program issuing the message, the name of the object responsible, the error
message itself, and a severity level (INFO, WARNING, ERROR, FATAL).
Like this:
% cat /dev/dull
cat: fatal: /dev/dull: No such file or directory
Unfortunately, they still haven't bothered to make all programs use perror()
itself! This, all by itself, would take care of the biggest problems with
UNIX error messages.
You get this:
% cat /dev/dull
cat: cannot open /dev/dull
% nm /dev/dull
nm: can't open "/dev/dull"
% file /dev/dull
/dev/dull: cannot open
Doesn't exist? File not found? What?
At least they could do this:
% more /dev/dull
/dev/dull: No such file or directory
That's more like it.
It'd take one summer student to fix this. Sigh...
--
Peter da Silva, Xenix Support, Ferranti International Controls Corporation.
Work: uunet.uu.net!ficc!peter, peter at ficc.uu.net, +1 713 274 5180. `-_-'
Home: bigtex!texbell!sugar!peter, peter at sugar.uu.net. 'U`
People have opinions. Companies have policy. And typos are my own business.
More information about the Comp.unix.wizards
mailing list