summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-08-11 13:03:30 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-08-11 13:03:30 -0400
commit88e389ef1ec5441d7941a15e3d075f011128d272 (patch)
treea123a85ceab49a013a9e86fca4c81b4728347fb2
parent49d56c3957668e54b4eb475f195ab019adffae40 (diff)
error if ping fails, rather than printing debug
-rw-r--r--IkiWiki/Plugin/inline.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm
index 1a6c7cfcd..d2e583289 100644
--- a/IkiWiki/Plugin/inline.pm
+++ b/IkiWiki/Plugin/inline.pm
@@ -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: $@";
}
}
}