Skip to content

Commit

Permalink
Apparently this is how errors are handled
Browse files Browse the repository at this point in the history
  • Loading branch information
yannk committed Mar 11, 2010
1 parent a79dd77 commit bb90dbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/AnyEvent/Superfeedr.pm
Expand Up @@ -47,8 +47,8 @@ sub new {
if $filtered{on_connect};

my $on_error = $filtered{on_error} || sub {
my $err = shift;
warn "Error: " . $err;
my ($cl, $acc, $err) = @_;
warn "Error: " . $err->string;
};

my $cl = AnyEvent::XMPP::Client->new(
Expand Down

0 comments on commit bb90dbe

Please sign in to comment.