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/");