avoid undefined value warning in some case
parent
87de5b822b
commit
3bf104e528
|
@ -233,7 +233,7 @@ sub pingurl (@) { #{{{
|
||||||
}
|
}
|
||||||
my $r=$res->value;
|
my $r=$res->value;
|
||||||
if (! exists $r->{flerror} || $r->{flerror}) {
|
if (! exists $r->{flerror} || $r->{flerror}) {
|
||||||
debug("Ping rejected: ".$r->{message});
|
debug("Ping rejected: ".(exists $r->{message} ? $r->{message} : "[unknown reason]"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue