Subject: | try_push on unblessed reference |
Receently I've started to get these:
Can't call method "try_push" on unblessed reference at /home/hornenj/perlmods/share/perl/5.18.2/Data/Throttler.pm line 144.
I can't debug it so easily since there's no check in the code that could cause a carp or crosk that would help me to check things.
Would you please add something like this:
die 'try_push: chain not defined' unless(defined($self->{data}->{chain}));
my $ret = $self->{data}->{chain}->try_push(%options);
Thanks.