lib/awestruct/handlers/front_matter_handler.rb in awestruct-0.4.6 vs lib/awestruct/handlers/front_matter_handler.rb in awestruct-0.4.7

- old
+ new

@@ -73,10 +73,16 @@ elsif ( mode == :yaml ) @raw_content = nil @content_line_offset = -1 end - @front_matter = YAML.load( yaml_content ) || {} + begin + @front_matter = YAML.load( yaml_content ) || {} + rescue => e + puts "could not parse #{relative_source_path}" + raise e + end + @parsed_parts = true end end