diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2001-04-08 16:45:49 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2001-04-08 16:45:49 +0000 |
commit | 5a14ac2a8fbdc64a6e5a1d31d891a4f0eee033d6 (patch) | |
tree | e31007d42dcc89fb9503a1c900c02a5f4ddcb019 /usr.sbin/pkg_install/add/main.c | |
parent | 40d86c85d5851915c47abba5df4f515c693af109 (diff) |
Better error messages: pwarnx function, which works like pwarn, except
it shows a current package name along with the program name, e.g.,
pkg_add(foo-3.0): some error occurred.
A few messages now bear redundant pkgnames, which is much better than
doing pkg_add * and being informed that something went slightly wrong
somewhere...
Diffstat (limited to 'usr.sbin/pkg_install/add/main.c')
-rw-r--r-- | usr.sbin/pkg_install/add/main.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/pkg_install/add/main.c b/usr.sbin/pkg_install/add/main.c index 5559a3b3fc3..fc6eb94d2ff 100644 --- a/usr.sbin/pkg_install/add/main.c +++ b/usr.sbin/pkg_install/add/main.c @@ -1,7 +1,7 @@ -/* $OpenBSD: main.c,v 1.12 2000/02/04 05:05:45 deraadt Exp $ */ +/* $OpenBSD: main.c,v 1.13 2001/04/08 16:45:46 espie Exp $ */ #ifndef lint -static char *rcsid = "$OpenBSD: main.c,v 1.12 2000/02/04 05:05:45 deraadt Exp $"; +static char *rcsid = "$OpenBSD: main.c,v 1.13 2001/04/08 16:45:46 espie Exp $"; #endif /* @@ -182,14 +182,14 @@ main(int argc, char **argv) } /* If no packages, yelp */ if (!ch) - warnx("missing package name(s)"), usage(); + pwarnx("missing package name(s)"), usage(); else if (ch > 1 && AddMode == MASTER) - warnx("only one package name may be specified with master mode"), + pwarnx("only one package name may be specified with master mode"), usage(); } if ((err = pkg_perform(pkgs)) != 0) { if (Verbose) - warnx("%d package addition(s) failed", err); + pwarnx("%d package addition(s) failed", err); return err; } else |