/[Frey]/trunk/lib/Frey/Server.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/lib/Frey/Server.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 219 by dpavlin, Fri Oct 31 22:39:48 2008 UTC revision 220 by dpavlin, Fri Oct 31 23:07:46 2008 UTC
# Line 58  sub main { Line 58  sub main {
58          my ($req) = @_;          my ($req) = @_;
59    
60          my $path = $req->request->url->path;          my $path = $req->request->url->path;
61          warn "REQUEST: $path ",dump( $req->params ),"\n";          #warn "REQUEST: $path ",dump( $req->params );
62    
63          Module::Reload->check if $path =~ m!reload! || $req->param('reload');          Module::Reload->check if $path =~ m!reload! || $req->param('reload');
64    
# Line 88  sub main { Line 88  sub main {
88    
89          if ( $@ ) {          if ( $@ ) {
90                  warn $@;                  warn $@;
91                  #$req->conn->send_error( 404 ); # FIXME this should probably be 500, but we can't ship page with it                  $req->conn->send_error( 404 );  # FIXME this should probably be 500, but we can't ship page with it
92                  $req->print( qq{<pre class="error">$@<pre>} );                  $req->print( qq{<pre class="error">$@<pre>} );
93  #               Carp::REPL::repl;  #               Carp::REPL::repl;
94    

Legend:
Removed from v.219  
changed lines
  Added in v.220

  ViewVC Help
Powered by ViewVC 1.1.26