diff options
author | Philippe Charnier <charnier@FreeBSD.org> | 2004-04-04 19:17:38 +0000 |
---|---|---|
committer | Philippe Charnier <charnier@FreeBSD.org> | 2004-04-04 19:17:38 +0000 |
commit | 79a32d2730cd8ebedb1eebd2d69c4b73fd26128b (patch) | |
tree | 48519b94d9bd12b7092cecc5215d03386e0e7aea /usr.bin/ypwhich | |
parent | 051bbf603acda1585275c68dde879e22f65383f1 (diff) | |
download | src-test-79a32d2730cd8ebedb1eebd2d69c4b73fd26128b.tar.gz src-test-79a32d2730cd8ebedb1eebd2d69c4b73fd26128b.zip |
Be consistant while reporting error conditions.
Notes
Notes:
svn path=/head/; revision=127856
Diffstat (limited to 'usr.bin/ypwhich')
-rw-r--r-- | usr.bin/ypwhich/ypwhich.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ypwhich/ypwhich.c b/usr.bin/ypwhich/ypwhich.c index 04331916cba6f..8bfca24ed1325 100644 --- a/usr.bin/ypwhich/ypwhich.c +++ b/usr.bin/ypwhich/ypwhich.c @@ -217,7 +217,7 @@ main(int argc, char *argv[]) case YPERR_YPBIND: errx(ERR_NOYPBIND, "not running ypbind"); default: - errx(ERR_NOMASTER, "can't find master for map %s. reason: %s", + errx(ERR_NOMASTER, "can't find master for map %s: reason: %s", map, yperr_string(r)); } exit(0); @@ -247,7 +247,7 @@ main(int argc, char *argv[]) case YPERR_YPBIND: errx(ERR_NOYPBIND, "not running ypbind"); default: - errx(ERR_NOMASTER, "can't get map list for domain %s. reason: %s", + errx(ERR_NOMASTER, "can't get map list for domain %s: reason: %s", domnam, yperr_string(r)); } exit(0); |