Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Debugスクリーンをprocessのあとでやっていて、finalizeのあとにbodyをセットするということになっていたので、そのぶぶん…

…を after 'dispatch' に移動
  • Loading branch information...
commit 513b9886137b232072ed100efb641e32f996046e 1 parent 2672624
Daisuke Murase authored June 27, 2012

Showing 1 changed file with 7 additions and 3 deletions. Show diff stats Hide diff stats

  1. 10  lib/Ark/Context/Debug.pm
10  lib/Ark/Context/Debug.pm
@@ -170,14 +170,18 @@ around process => sub {
170 170
     $self->log( debug =>
171 171
                   "Request took ${elapsed}s (${av}/s)\n%s", $self->debug_report->draw);
172 172
 
  173
+    $res;
  174
+};
  175
+
  176
+after dispatch => sub {
  177
+    my ($self) = @_;
  178
+
173 179
     if (my @error = @{ $self->error }) {
174 180
         $self->ensure_class_loaded('Text::MicroTemplate');
175 181
 
176 182
         $self->res->status(500);
177  
-        $self->res->body( $self->debug_screen_tamplate->($self)->as_string );
  183
+        $self->res->body( my $body = $self->debug_screen_tamplate->($self)->as_string );
178 184
     }
179  
-
180  
-    $res;
181 185
 };
182 186
 
183 187
 after prepare_action => sub {

0 notes on commit 513b988

Please sign in to comment.
Something went wrong with that request. Please try again.