wvuweb / hammer

A tool for CleanSlate theme development
https://cleanslate.wvu.edu
4 stars 2 forks source link

Give a more helpful error message when the blog array in mock data isn't formatted properly #59

Closed adamjohnson closed 5 years ago

adamjohnson commented 5 years ago

Steps to reproduce the issue:

  1. Clone the graduate-admissions theme.
  2. Go to the blog_article.html or blog_index.html templates via hammer.

Results

Hammer outputs:

no implicit conversion of String into Integer

Expected Results

Is it possible to output a more helpful error message here? For example:

The blog key in your mock_data file is improperly formatted. See Hammer on Github for an example of a properly formatted blog key.

zeroedin commented 5 years ago

This was fixed but not closed in https://github.com/wvuweb/hammer/commit/f0a5d49017937a24d16d6e413378733c1a6e183a