projects
/
gitmo/Moose.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
We need to make sure Moose is loaded before using
[gitmo/Moose.git]
/
lib
/
Moose
/
Exporter.pm
diff --git
a/lib/Moose/Exporter.pm
b/lib/Moose/Exporter.pm
index
980bee5
..
036a744
100644
(file)
--- a/
lib/Moose/Exporter.pm
+++ b/
lib/Moose/Exporter.pm
@@
-262,6
+262,7
@@
sub _make_import_sub {
_apply_meta_traits( $CALLER, $traits );
}
elsif ( @{$traits} ) {
+ require Moose;
Moose->throw_error(
"Cannot provide traits when $class does not have an init_meta() method"
);