bump copyright year to 2009
[gitmo/Class-MOP.git] / lib / Class / MOP / Method / Constructor.pm
index 1f19627..2aecc43 100644 (file)
@@ -107,10 +107,13 @@ sub generate_constructor_method_inline {
     $source .= ";\n" . '}';
     warn $source if $self->options->{debug};
 
-    return $self->_eval_closure(
+    my $code = $self->_eval_closure(
         $close_over,
         $source
     );
+    confess "Could not eval the constructor :\n\n$source\n\nbecause :\n\n$@" if $@;
+
+    return $code;
 }
 
 sub _generate_slot_initializer {
@@ -255,7 +258,7 @@ Stevan Little E<lt>stevan@iinteractive.comE<gt>
 
 =head1 COPYRIGHT AND LICENSE
 
-Copyright 2006-2008 by Infinity Interactive, Inc.
+Copyright 2006-2009 by Infinity Interactive, Inc.
 
 L<http://www.iinteractive.com>