lib/awestruct/handlers/base_tilt_handler.rb in awestruct-0.5.6.beta8 vs lib/awestruct/handlers/base_tilt_handler.rb in awestruct-0.5.6.beta9

- old
+ new

@@ -135,15 +135,17 @@ rescue LoadError => e error_page = context[:page] ExceptionHelper.log_message "Could not load template library required for rendering #{File.join site.dir, error_page.source_path}." ExceptionHelper.log_message "Please see #{File.join site.dir, error_page.output_path} for more information" return ExceptionHelper.html_error_report e, error_page.source_path - rescue Exception => e + rescue => e error_page = context[:page] if error_page[:__is_layout] == true ExceptionHelper.log_message "An error during rendering layout file #{File.join site.dir, error_page.source_path} occurred." + ExceptionHelper.log_building_error e, error_page.source_path else ExceptionHelper.log_message "An error during rendering #{File.join site.dir, error_page.source_path} occurred." + ExceptionHelper.log_building_error e, error_page.source_path end ExceptionHelper.log_message "Please see #{File.join site.dir, error_page.output_path} for more information" return ExceptionHelper.html_error_report e, error_page.source_path end end