no need for throwing exception
André Walker [Wed, 2 May 2012 02:20:37 +0000 (23:20 -0300)]
lib/Catalyst.pm

index 1b4c69f..47e9134 100644 (file)
@@ -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);
 }