Be consistant while reporting error conditions.

This commit is contained in:
Philippe Charnier 2004-04-04 19:17:38 +00:00
parent 051bbf603a
commit 79a32d2730

View File

@ -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);