From: André Walker Date: Wed, 2 May 2012 02:20:37 +0000 (-0300) Subject: no need for throwing exception X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=1b9a4c17043fd97193d8718d1f2f155f0b3ac6c5 no need for throwing exception --- diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index 1b4c69f..47e9134 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -146,8 +146,7 @@ sub BUILD { my $self = shift; my $class = ref $self; - Catalyst::Exception->throw("You can't run the application before $class" . "->setup") - unless $class->setup_finished; + return unless $class->setup_finished; $self->container->_set_application($self); }