comparison Lib/IMPL/Web/Handler/ErrorHandler.pm @ 208:3d433a977e3b

corrected RestController for empty PAT_INFO corrected charset for ErrorHandler
author sergey
date Fri, 18 May 2012 18:43:00 +0400
parents c8fe3f84feba
children d6e2ea24af08
comparison
equal deleted inserted replaced
207:f534a60d5b01 208:3d433a977e3b
41 $result = $next ? $next->($action) : undef; 41 $result = $next ? $next->($action) : undef;
42 }; 42 };
43 43
44 if (my $err = $@) { 44 if (my $err = $@) {
45 $action->ReinitResponse(); 45 $action->ReinitResponse();
46 $action->response->charset('utf-8');
46 $action->response->contentType($this->contentType); 47 $action->response->contentType($this->contentType);
47 48
48 my $vars = { 49 my $vars = {
49 error => $err 50 error => $err
50 }; 51 };