projects
/
gitmo/Mouse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
de23678
)
Fix an issue in Mouse::Object::new to throw informative messages
gfx [Thu, 15 Oct 2009 08:13:11 +0000 (17:13 +0900)]
lib/Mouse/Object.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Mouse/Object.pm
b/lib/Mouse/Object.pm
index
268e845
..
6e43b02
100644
(file)
--- a/
lib/Mouse/Object.pm
+++ b/
lib/Mouse/Object.pm
@@
-4,7
+4,7
@@
use Mouse::Util qw(does dump); # enables strict and warnings
sub new {
my $class = shift;
- $class->throw_error('Cannot call new() on an instance') if ref $class;
+ $class->meta->throw_error('Cannot call new() on an instance') if ref $class;
my $args = $class->BUILDARGS(@_);