Skip to content

Commit

Permalink
use croak instead of die
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Kruglov committed May 9, 2014
1 parent 4b6005c commit f9c5564
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Redis.pm
Expand Up @@ -247,7 +247,7 @@ sub __with_reconnect {
or die $_;

$self->{__inside_transaction} || $self->{__inside_watch}
and die "reconnect disabled inside transaction or watch";
and croak("reconnect disabled inside transaction or watch");

$self->connect;
$cb->();
Expand Down

0 comments on commit f9c5564

Please sign in to comment.