From: gsoares Date: Thu, 16 Apr 2015 15:14:30 +0000 (+0000) Subject: Tweak error output. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=1fa5b1e382af24f9a3a534356741c7280a14c707;p=openbsd Tweak error output. ok krw@ --- diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c index 026f53de7cc..d280bac73a9 100644 --- a/sbin/dhclient/dhclient.c +++ b/sbin/dhclient/dhclient.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dhclient.c,v 1.359 2015/02/15 01:56:42 tedu Exp $ */ +/* $OpenBSD: dhclient.c,v 1.360 2015/04/16 15:14:30 gsoares Exp $ */ /* * Copyright 2004 Henning Brauer @@ -467,7 +467,7 @@ main(int argc, char *argv[]) get_ifname(argv[0]); ifi->index = if_nametoindex(ifi->name); if (ifi->index == 0) - error("'%s' is not an interface", ifi->name); + error("%s: no such interface", ifi->name); tzset(); diff --git a/sbin/dhclient/dispatch.c b/sbin/dhclient/dispatch.c index 2a4aff340d5..2cb7cc936a6 100644 --- a/sbin/dhclient/dispatch.c +++ b/sbin/dhclient/dispatch.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dispatch.c,v 1.100 2015/02/06 04:18:20 krw Exp $ */ +/* $OpenBSD: dispatch.c,v 1.101 2015/04/16 15:14:31 gsoares Exp $ */ /* * Copyright 2004 Henning Brauer @@ -88,7 +88,7 @@ get_hw_address(void) } if (!found) - error("%s: not found", ifi->name); + error("%s: no such interface", ifi->name); freeifaddrs(ifap); }