error if ping fails, rather than printing debug
authorJoey Hess <joey@kodama.kitenet.net>
Mon, 11 Aug 2008 17:03:30 +0000 (13:03 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Mon, 11 Aug 2008 17:03:30 +0000 (13:03 -0400)
IkiWiki/Plugin/inline.pm

index 1a6c7cfcd580ac35b755a8a3a446c77521aad0e1..d2e58328988e1c87b9232b33925afb722724bf51 100644 (file)
@@ -579,15 +579,15 @@ sub pingurl (@) { #{{{
                                        $title, $url);
                                my $res = $client->send_request($req);
                                if (! ref $res) {
-                                       debug("Did not receive response to ping");
+                                       error("Did not receive response to ping");
                                }
                                my $r=$res->value;
                                if (! exists $r->{flerror} || $r->{flerror}) {
-                                       debug("Ping rejected: ".(exists $r->{message} ? $r->{message} : "[unknown reason]"));
+                                       error("Ping rejected: ".(exists $r->{message} ? $r->{message} : "[unknown reason]"));
                                }
                        };
                        if ($@) {
-                               debug "Ping failed: $@";
+                               error "Ping failed: $@";
                        }
                }
        }