diff Lib/IMPL/Web/View/TTContext.pm @ 353:feeb3bc4a818

corrected error handling while loading templates corrected variables lookup in controls updated handles to use the new view features
author cin
date Fri, 11 Oct 2013 15:49:04 +0400
parents 675cd1829255
children 9330835535b9
line wrap: on
line diff
--- a/Lib/IMPL/Web/View/TTContext.pm	Thu Oct 10 19:51:19 2013 +0400
+++ b/Lib/IMPL/Web/View/TTContext.pm	Fri Oct 11 15:49:04 2013 +0400
@@ -110,6 +110,11 @@
 		        $this->modules->{$file} = $info;
 		        return $cache->{$name} = $info;
             } else {
+            	my $err = $@;
+            	
+            	for(my $t = $err; is($t,'Template::Exception'); $t = $t->info ) {
+            		die $err unless $t->type eq Template::Constants::ERROR_FILE;
+            	}
             	$this->modules->{$file} = undef;
             }
 		}