From 71e0ff381104d5706f9c36ab4fefed77c30f5653 Mon Sep 17 00:00:00 2001 From: charnier Date: Sun, 4 Apr 2004 19:17:38 +0000 Subject: [PATCH] Be consistant while reporting error conditions. --- usr.bin/ypwhich/ypwhich.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/ypwhich/ypwhich.c b/usr.bin/ypwhich/ypwhich.c index 04331916cba6..8bfca24ed132 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);