lib/nanoc-conref-fs/conrefifier.rb in nanoc-conref-fs-0.6.4 vs lib/nanoc-conref-fs/conrefifier.rb in nanoc-conref-fs-0.6.5

- old
+ new

@@ -46,10 +46,10 @@ if result =~ NanocConrefFS::Conrefifier::BLOCK_SUB || result =~ NanocConrefFS::Conrefifier::SINGLE_SUB result = NanocConrefFS::Conrefifier.apply_liquid(result, page_vars) end rescue Liquid::SyntaxError => e # unrecognized Liquid, so just return the content - STDERR.puts "Could not convert #{filename}: #{e.message}" + STDERR.puts "Could not convert #{result}: #{e.message}" rescue => e raise "#{e.message}: #{e.inspect}" end result = result.gsub(/\[\[\s*#(\S+)\s*\]\]/, '{{#\1}}')