We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d65b83c + acccd68 commit 37688b4Copy full SHA for 37688b4
lib/Protocol/Redis.pm
@@ -14,7 +14,7 @@ sub new {
14
15
my $self = {@_};
16
17
- return unless $self->{api} == '1';
+ Carp::croak(qq/Unknown Protocol::Redis API version $self->{api}/) unless $self->{api} == '1';
18
19
bless $self, $class;
20
0 commit comments