Skip to content

Posts with invalid dates result in unhelpful error messages #4375

@benbalter

Description

@benbalter

Steps to reproduce:

  1. In an empty folder, create a _posts subdirectory, an add 2016-01-01-test.md
  2. In that post, add an invalid date in the YAML front matter, e.g., date: tuesday
  3. jekyll build

Expected

Site would yell at me, but still builds

Actual

  • jekyll 3.0.1 | Error: undefined methodeach' for nil:NilClass`
  • jekyll 3.1.0.pre.rc2 | Error: undefined methodstrftime' for "invalid-date":String`

The same is true of other non-date values.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions