Ver Fonte

error handling

George Baugh há 2 anos atrás
pai
commit
9e49431d7e

+ 1 - 0
lib/TCMS.pm

@@ -236,6 +236,7 @@ sub app {
     {
         no strict 'refs';
         my $output = $routes{$path}{callback}->($query);
+        die "$path returned no data!" unless ref $output eq 'ARRAY' && @$output == 3;
 
         INFO("$env->{REQUEST_METHOD} $output->[0] $path");
 

+ 0 - 0
www/templates/html/components/footers/about_footer.tx


+ 0 - 0
www/templates/html/components/headers/about_header.tx