comparison Lib/IMPL/Web/Handler/ErrorHandler.pm @ 256:32aceba4ee6d

corrected ViewHandlers to handle cookies and headers. Dirty hacks to handle binary data RestController doesn't deal with file extensions anymore.
author sergey
date Wed, 12 Dec 2012 04:29:50 +0400
parents 3cebcf6fdb9b
children feeb3bc4a818
comparison
equal deleted inserted replaced
255:827cf96faa1c 256:32aceba4ee6d
41 eval { 41 eval {
42 $result = $next ? $next->($action) : undef; 42 $result = $next ? $next->($action) : undef;
43 }; 43 };
44 44
45 if (my $err = $@) { 45 if (my $err = $@) {
46 46
47 warn "$err";
48
47 my $vars = { 49 my $vars = {
48 error => $err 50 error => $err
49 }; 51 };
50 52
51 my $status = "500 Internal Server Error"; 53 my $status = "500 Internal Server Error";