projects
/
catagits/Catalyst-Runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
fcf8917
)
Disallow calling setup more than once.
Florian Ragwitz [Sat, 31 Jan 2009 18:39:54 +0000 (18:39 +0000)]
lib/Catalyst.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Catalyst.pm
b/lib/Catalyst.pm
index
7665829
..
b776dca
100644
(file)
--- a/
lib/Catalyst.pm
+++ b/
lib/Catalyst.pm
@@
-923,8
+923,8
@@
Catalyst> line.
sub setup {
my ( $class, @arguments ) = @_;
- $class->log->warn("Running setup twice is not a good idea.")
- if ( $class->setup_finished );
+ croak('Running setup more than once')
+ if ( $class->setup_finished );
unless ( $class->isa('Catalyst') ) {