Revision history for Perl extension Moose
+ * Moose
+ - made make_immutable warning cluck to show where the error is
+
0.44
* Moose::Cookbook::Recipe7
- added new recipe for immutable functionality (Dave Rolsky)
our $AUTHORITY = 'cpan:STEVAN';
use Scalar::Util 'blessed', 'reftype';
-use Carp 'confess', 'croak';
+use Carp 'confess', 'croak', 'cluck';
use Sub::Name 'subname';
use Sub::Exporter;
make_immutable => sub {
my $class = $CALLER;
return subname 'Moose::make_immutable' => sub {
- warn "The make_immutable keyword has been deprecated, " .
- "please go back to __PACKAGE__->meta->make_immutable\n";
+ cluck "The make_immutable keyword has been deprecated, " .
+ "please go back to __PACKAGE__->meta->make_immutable\n";
$class->meta->make_immutable(@_);
};
},