From: Guillermo Roditi Date: Thu, 12 Jun 2008 19:14:31 +0000 (+0000) Subject: teeny bug X-Git-Tag: 0_55~118 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3f11800da1cad37973dbe897018413e9ef5517d8;p=gitmo%2FMoose.git teeny bug --- diff --git a/lib/Moose/Meta/Attribute.pm b/lib/Moose/Meta/Attribute.pm index 34c16ca..e9ab706 100644 --- a/lib/Moose/Meta/Attribute.pm +++ b/lib/Moose/Meta/Attribute.pm @@ -452,11 +452,10 @@ sub get_value { if ($self->has_default) { my $default = $self->default($instance); $self->set_initial_value($instance, $default); - } - if ( $self->has_builder ){ + } elsif ( $self->has_builder ) { if (my $builder = $instance->can($self->builder)){ $self->set_initial_value($instance, $instance->$builder); - } + } else { confess(blessed($instance) . " does not support builder method '"