lib/lookbook/page.rb in lookbook-0.7.2.beta.2 vs lib/lookbook/page.rb in lookbook-0.7.2.beta.3

- old
+ new

@@ -104,10 +104,10 @@ begin frontmatter = (get_frontmatter(file_contents) || {}).deep_symbolize_keys rescue => exception frontmatter = {} line_number_match = exception.message.match(/.*line\s(\d+)/) - @errors.push(Lookbook::Error.new(exception, { + @errors.push(Lookbook::Error.new(exception, **{ title: "YAML frontmatter parsing error", file_path: @pathname.to_s, line_number: line_number_match ? line_number_match[1] : false })) end