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

Include path to files in Loader error messages #61

Open
Sharpie opened this issue Mar 14, 2017 · 0 comments
Open

Include path to files in Loader error messages #61

Sharpie opened this issue Mar 14, 2017 · 0 comments

Comments

@Sharpie
Copy link
Member

Sharpie commented Mar 14, 2017

When config_builder fails to load a file, a cryptic parsing error can occur. This happens most often with YAML files:

Vagrant failed to initialize at a very early stage:

There was an error loading a Vagrantfile. The file being loaded
and the error message are shown below. This is usually caused by
a syntax error.

Path: /Users/sharpie/Source/debug-utils/Vagrantfile
Line number: 0
Message: Psych::SyntaxError: (<unknown>): control characters are not allowed at line 1 column 1

We should throw a nicer error that includes a path to the malformed file.

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

No branches or pull requests

1 participant