use Carp 'confess';
use Scalar::Util 'blessed', 'weaken';
-our $VERSION = '0.85';
+our $VERSION = '0.86';
$VERSION = eval $VERSION;
our $AUTHORITY = 'cpan:STEVAN';
my $proxy = $instance->$accessor();
my $error
- = !defined $proxy ? ' is not defined'
- : !blessed $proxy ? qq{ is not an object (got '$proxy')}
- : undef;
+ = !defined $proxy ? ' is not defined'
+ : ref($proxy) && !blessed($proxy) ? qq{ is not an object (got '$proxy')}
+ : undef;
if ($error) {
$self->throw_error(