summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet6
1 files changed, 5 insertions, 1 deletions
diff --git a/mdkapplet b/mdkapplet
index 74e0ea19..5d4093bf 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -240,7 +240,11 @@ sub silentCheck {
logIt(N("Connecting to") . " $link ...\n");
gtkflush(); go2State('busy'); gtkflush();
my $response = mdkonline::get_from_URL($link, 'MdkAppletAgent/0.1');
- $response->is_success or go2State('disconnected'), return;
+ if ($response->is_error) {
+ my $status_err = $response->status_line;
+ go2State('critical');
+ logIt("Unable to contact Mandrakeonline server: $status_err") and return;
+ }
$ct = $response->content;
if ($debug) {
print "\nCONTENTS = $ct\n" if $debug;