projects
/
gitmo/Moose.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Improve the error message of a role using "extends"
[gitmo/Moose.git]
/
lib
/
Moose
/
Role.pm
diff --git
a/lib/Moose/Role.pm
b/lib/Moose/Role.pm
index
5910c98
..
55a044d
100644
(file)
--- a/
lib/Moose/Role.pm
+++ b/
lib/Moose/Role.pm
@@
-18,7
+18,7
@@
use Moose::Meta::Role;
use Moose::Util::TypeConstraints;
sub extends {
- croak "Roles do not currently support 'extends'";
+ croak "Roles do not support 'extends' (you can use 'with' to specialize a role)";
}
sub with {