Cannot run in the background when also watching for file changes and restarting.
Dave Rolsky [Fri, 24 Apr 2009 02:14:28 +0000 (02:14 +0000)]
lib/Catalyst/Helper.pm

index 719dfdc..ec01efc 100644 (file)
@@ -1022,6 +1022,9 @@ my $runner = sub {
 if ( $restart ) {
     require Catalyst::Restarter;
 
+    die "Cannot run in the background and also watch for changed files.\n"
+        if $background;
+
     my %args;
     $args{watch_directory} = $watch_directory
         if defined $watch_directory;