
Simon McVittie
authored
`warn(fmt, args)` is equivalent to (pseudocode)
`warnx(fmt + ": %s", args, strerror(errno))`. In contexts where we do
not have a useful value for errno, or where we are showing an error
message that should already contain a previous result of strerror, we
should use warnx() instead. This avoids showing a misleading errno
which might have been set for some unrelated reason.
Prompted by jupiter/tasks#887.
Signed-off-by:
Simon McVittie <smcv@collabora.com>
Name | Last commit | Last update |
---|---|---|
.reuse | ||
LICENSES | ||
build-aux | ||
capsule | ||
ci | ||
data | ||
debian | ||
doc | ||
examples | ||
m4 | ||
tests | ||
utils | ||
.gitignore | ||
AUTHORS | ||
COPYING | ||
Makefile.am | ||
NEWS | ||
autogen.sh | ||
configure.ac | ||
documentation.mk |