projects
/
catagits/Catalyst-Runtime.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Added warning for setup after setup
[catagits/Catalyst-Runtime.git]
/
lib
/
Catalyst.pm
diff --git
a/lib/Catalyst.pm
b/lib/Catalyst.pm
index
961899e
..
755a9ab
100644
(file)
--- a/
lib/Catalyst.pm
+++ b/
lib/Catalyst.pm
@@
-725,6
+725,9
@@
Catalyst> line.
sub setup {
my ( $class, @arguments ) = @_;
+ $class->log->warn("Running setup twice is not a good idea.")
+ if ( $class->setup_finished );
+
unless ( $class->isa('Catalyst') ) {
Catalyst::Exception->throw(