Skip to content

Commit

Permalink
warn and exit instead of die.
Browse files Browse the repository at this point in the history
because Object::Event (AnyEvent::IRC use this) ignore die in callback
handler.
  • Loading branch information
hirose31 committed Feb 19, 2012
1 parent ef546ba commit 4b565a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/ikachan
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ my $create_session; $create_session = sub {
on_connect => sub {
my ($con, $err) = @_;
if (defined $err) {
die "connect error: $err\n";
warn "connect error: $err\n";
exit 1;
}
warn 'connect';
$is_connect = 1;
Expand Down

0 comments on commit 4b565a3

Please sign in to comment.