From 5a14ac2a8fbdc64a6e5a1d31d891a4f0eee033d6 Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Sun, 8 Apr 2001 16:45:49 +0000 Subject: 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... --- usr.sbin/pkg_install/create/main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'usr.sbin/pkg_install/create') diff --git a/usr.sbin/pkg_install/create/main.c b/usr.sbin/pkg_install/create/main.c index c8d01e741f7..621bf09b71c 100644 --- a/usr.sbin/pkg_install/create/main.c +++ b/usr.sbin/pkg_install/create/main.c @@ -1,7 +1,7 @@ -/* $OpenBSD: main.c,v 1.8 1998/10/13 23:09:50 marc Exp $ */ +/* $OpenBSD: main.c,v 1.9 2001/04/08 16:45:46 espie Exp $ */ #ifndef lint -static const char *rcsid = "$OpenBSD: main.c,v 1.8 1998/10/13 23:09:50 marc Exp $"; +static const char *rcsid = "$OpenBSD: main.c,v 1.9 2001/04/08 16:45:46 espie Exp $"; #endif /* @@ -137,14 +137,14 @@ main(int argc, char **argv) /* If no packages, yelp */ if (pkgs == start) - warnx("missing package name"), usage(); + pwarnx("missing package name"), usage(); *pkgs = NULL; if (start[1]) - warnx("only one package name allowed ('%s' extraneous)", start[1]), + pwarnx("only one package name allowed ('%s' extraneous)", start[1]), usage(); if (!pkg_perform(start)) { if (Verbose) - warnx("package creation failed"); + pwarnx("package creation failed"); return 1; } else -- cgit v1.2.3