@@ -54,20 +54,20 @@ package HooksApp {
5454 {
5555 $self -> set_render_error_called($self -> render_error_called + 1);
5656 $message //= " app error: $code " ;
57- await $ctx -> res-> status($code )-> text($message );
57+ $ctx -> res-> status($code )-> text($message );
5858 }
5959
6060 async sub render_response ($self , $controller , $ctx , $result )
6161 {
6262 $self -> set_render_response_called($self -> render_response_called + 1);
63- await $ctx -> res-> text($result );
63+ $ctx -> res-> text($result );
6464 }
6565
6666 async sub on_error ($self , $controller , $ctx , $error )
6767 {
6868 $self -> set_on_error_called($self -> on_error_called + 1);
6969 die $error unless $error isa ' Gears::X::HTTP' ;
70- await +($controller // $self -> controller)-> render_error($ctx , $error -> code, " app caught: " . $error -> code);
70+ await + ($controller // $self -> controller)-> render_error($ctx , $error -> code, " app caught: " . $error -> code);
7171 }
7272
7373 async sub on_startup ($self , $state )
@@ -140,21 +140,21 @@ package HooksApp::Controller::CustomHooks {
140140 async sub render_response ($self , $ctx , $result )
141141 {
142142 $self -> set_render_response_called($self -> render_response_called + 1);
143- await $ctx -> res-> text($result );
143+ $ctx -> res-> text($result );
144144 }
145145
146146 async sub render_error ($self , $ctx , $code , $message = undef )
147147 {
148148 $self -> set_render_error_called($self -> render_error_called + 1);
149149 $message //= " custom error: $code " ;
150- await $ctx -> res-> status($code )-> text($message );
150+ $ctx -> res-> status($code )-> text($message );
151151 }
152152
153153 async sub on_error ($self , $ctx , $error )
154154 {
155155 $self -> set_on_error_called($self -> on_error_called + 1);
156156 die $error unless $error isa ' Gears::X::HTTP' ;
157- await $self -> render_error($ctx , $error -> code, " custom caught: " . $error -> code);
157+ $self -> render_error($ctx , $error -> code, " custom caught: " . $error -> code);
158158 }
159159}
160160
0 commit comments