diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2003-12-24 19:22:01 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2003-12-24 19:22:01 +0000 |
commit | 3b89508c7731a21d167739fab4c678d4651589da (patch) | |
tree | e0a9f199a4110a1aad6cd6e7b701699903948507 /usr.sbin | |
parent | a95e87402a8612e43a4cc1cfe6c200a20a620e64 (diff) |
slightly more helpfull error msgs
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/bgpd/bgpd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/bgpd/bgpd.c b/usr.sbin/bgpd/bgpd.c index c725ce9b971..61278231d9b 100644 --- a/usr.sbin/bgpd/bgpd.c +++ b/usr.sbin/bgpd/bgpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bgpd.c,v 1.22 2003/12/24 13:28:01 henning Exp $ */ +/* $OpenBSD: bgpd.c,v 1.23 2003/12/24 19:22:00 henning Exp $ */ /* * Copyright (c) 2003 Henning Brauer <henning@openbsd.org> @@ -350,18 +350,18 @@ dispatch_imsg(struct imsgbuf *ibuf, int idx, struct mrt_config *conf) if (idx != PFD_PIPE_ROUTE) fatal("route request not from RDE", 0); if (kroute_add(rfd, imsg.data)) - fatal("kroute bytes left", 0); + fatal("kroute_add error", errno); break; case IMSG_KROUTE_CHANGE: if (idx != PFD_PIPE_ROUTE) fatal("route request not from RDE", 0); if (kroute_change(rfd, imsg.data)) - fatal("kroute bytes left", 0); + fatal("kroute_change error", errno); case IMSG_KROUTE_DELETE: if (idx != PFD_PIPE_ROUTE) fatal("route request not from RDE", 0); if (kroute_delete(rfd, imsg.data)) - fatal("kroute bytes left", 0); + fatal("kroute_delete error", errno); break; case IMSG_SHUTDOWN_DONE: if (idx == PFD_PIPE_ROUTE) |