comparison Lib/IMPL/Web/Handler/ErrorHandler.pm @ 398:38cb0b80e88e

minor changes
author sergey
date Thu, 08 May 2014 03:53:17 +0400
parents 69a1f1508696
children b79081b70a7a
comparison
equal deleted inserted replaced
397:73f81f4e9570 398:38cb0b80e88e
16 'IMPL::Object::Serializable' => undef 16 'IMPL::Object::Serializable' => undef
17 }, 17 },
18 props => [ 18 props => [
19 errors => PROP_RW, 19 errors => PROP_RW,
20 view => PROP_RW, 20 view => PROP_RW,
21 layout => PROP_RW,
22 fallback => PROP_RW, 21 fallback => PROP_RW,
23 contentType => PROP_RW 22 contentType => PROP_RW
24 ] 23 ]
25 }; 24 };
26 25
58 my ($code) = ($status =~ m/^(\d+)/); 57 my ($code) = ($status =~ m/^(\d+)/);
59 58
60 my $text = $this->view->display( 59 my $text = $this->view->display(
61 $err, 60 $err,
62 $this->errors->{$code} || $this->fallback, 61 $this->errors->{$code} || $this->fallback,
63 { 62 $vars
64 layout => $this->layout
65 }
66 ); 63 );
67 64
68 $result = HttpResponse->new( 65 $result = HttpResponse->new(
69 status => $status, 66 status => $status,
70 type => $this->contentType, 67 type => $this->contentType,