summaryrefslogtreecommitdiffstats
path: root/src/connections/ppp
diff options
context:
space:
mode:
authorJim Pryor <profjim@jimpryor.net>2009-08-11 14:05:01 +0200
committerJames Rayner <james@archlinux.org>2009-08-15 04:28:27 +0200
commitefc7183790cec4fc2b3425f17201e0e2fea51c44 (patch)
tree3f50a28ee89f2ce23571a506c0ea684863aba18d /src/connections/ppp
parent77f132cb6eb6b2f6514635862f41254bdaf461ac (diff)
downloadnetctl-efc7183790cec4fc2b3425f17201e0e2fea51c44.tar.gz
netctl-efc7183790cec4fc2b3425f17201e0e2fea51c44.tar.xz
Improve debugging and error-reporting.
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
Diffstat (limited to 'src/connections/ppp')
-rw-r--r--src/connections/ppp4
1 files changed, 2 insertions, 2 deletions
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
}