Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling a missing yaml partial causes white screen of death without a helpful error message. #81

Closed
adamjohnson opened this issue Apr 9, 2019 · 1 comment
Assignees
Labels

Comments

@adamjohnson
Copy link
Contributor

adamjohnson commented Apr 9, 2019

Steps to reproduce:

  1. Clone housing
  2. Start hammer and go to any template.
  3. Open your mock data file and try to include a yaml partial like so: <%= YAML::include("does-not-exist.yml") %>

Results:

Internal Server Error
(<unknown>): could not find expected ':' while scanning a simple key at line 23 column 1
WEBrick/1.4.2 (Ruby/2.3.1/2016-04-26) at localhost:2000

Expected Results

Hammer should render a helpful error so the user can troubleshoot and fix the issue. Ideally this doesn't cause a white screen of death.

@zeroedin
Copy link
Contributor

Fixed in 222feb9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants