From 92251198dc000608f66debdc5f7c9cae689f5f78 Mon Sep 17 00:00:00 2001 From: Gavan Fantom Date: Wed, 9 Feb 2011 19:54:19 +0000 Subject: [PATCH] Use the error function rather than die for reporting config errors --- orangelogin.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/orangelogin.pl b/orangelogin.pl index be180d2..e4a23b4 100755 --- a/orangelogin.pl +++ b/orangelogin.pl @@ -28,13 +28,13 @@ while () close CONFIG; $username = $options{'username'}; -die "username not set" unless defined($username); +error("username not set") unless defined($username); $password = $options{'password'}; -die "password not set" unless defined($password); +error("password not set") unless defined($password); $downloaddir = $options{'downloaddir'}; -die "downloaddir not set" unless defined($downloaddir); +error("downloaddir not set") unless defined($downloaddir); print "Fetching homepage\n"; $mech->get("https://www.orange.co.uk/");