Permalink
Browse files

Fixed throw() in Badger::Base to find the right class

  • Loading branch information...
1 parent 1af39ed commit eab3543e67e019efaa851b13ca42bbaa0a0b4aa8 @abw committed Mar 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Badger/Base.pm
View
@@ -243,7 +243,7 @@ sub catch {
sub throws {
my $self = shift;
my $type = reftype $self || BLANK;
- my $class = $self->class;
+ my $class = class($self);
my $throws;
if (@_) {

0 comments on commit eab3543

Please sign in to comment.