lib/nanoc/base/compilation/compiler.rb in nanoc-3.6.4 vs lib/nanoc/base/compilation/compiler.rb in nanoc-3.6.5

- old
+ new

@@ -387,16 +387,17 @@ end rep.compiled = true compiled_content_cache[rep] = rep.content - Nanoc::NotificationCenter.post(:visit_ended, rep.item) Nanoc::NotificationCenter.post(:processing_ended, rep) Nanoc::NotificationCenter.post(:compilation_ended, rep) rescue => e rep.forget_progress Nanoc::NotificationCenter.post(:compilation_failed, rep, e) raise e + ensure + Nanoc::NotificationCenter.post(:visit_ended, rep.item) end # Clears the list of dependencies for items that will be recompiled. # # @param [Array<Nanoc::Item>] items The list of items for which to forget