Permalink
Browse files

short term solution for displaying item that was not able to be rende…

…red properly
  • Loading branch information...
1 parent eb87d5b commit 1251b12abf2fbe8bbad6255f2292d0637996f379 @smiller-leadscope smiller-leadscope committed Apr 2, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/nanoc/base/result_data/item_rep.rb
@@ -406,7 +406,12 @@ def layout(layout, filter_name, filter_args)
Nanoc::NotificationCenter.post(:filtering_started, self, filter_name)
# Layout
- @content[:last] = filter.run(layout.raw_content, filter_args)
+ begin
+ @content[:last] = filter.run(layout.raw_content, filter_args)
+ rescue
+ puts "Error laying out item: #{item.identifier}"
+ raise
+ end
# Create "post" snapshot
snapshot(:post, :final => false)

0 comments on commit 1251b12

Please sign in to comment.