From efc7183790cec4fc2b3425f17201e0e2fea51c44 Mon Sep 17 00:00:00 2001 From: Jim Pryor Date: Tue, 11 Aug 2009 08:05:01 -0400 Subject: Improve debugging and error-reporting. Signed-off-by: Jim Pryor --- src/connections/ppp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/connections/ppp') diff --git a/src/connections/ppp b/src/connections/ppp index 9432323..c59db40 100644 --- a/src/connections/ppp +++ b/src/connections/ppp @@ -10,8 +10,8 @@ ppp_up() { /usr/sbin/pppd call $PEER updetach child-timeout $PPP_TIMEOUT linkname $PEER if [[ $? -ne 0 ]]; then - err_append "pppd connection failed" - exit 1 + report_fail "Couldn't make pppd connection." + return 1 fi } -- cgit v1.2.3-24-g4f1b