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

Better error messages #2043

Merged
merged 1 commit into from
Sep 19, 2014
Merged

Better error messages #2043

merged 1 commit into from
Sep 19, 2014

Conversation

ef4
Copy link
Contributor

@ef4 ef4 commented Sep 18, 2014

It's possible to make broccoli / ember-cli fail with rejection values that aren't exceptions. A simple way to demonstrate this is to create a fresh ember-cli app and put a broken symlink in public. The resulting output looks like this:

$ ember build
version: 0.0.46
Build failed.
undefined
$ ember serve
version: 0.0.46
Livereload server on port 35729
Serving on http://0.0.0.0:4200
undefined
undefined

After this patch, you get the following instead:

$ ember build
version: 0.0.46-master-615fd3506d
Build failed.
Error: ENOENT, stat '/Users/edward/hacking/pristine-cli/tmp/tree_merger-tmp_dest_dir-7plRaOF5.tmp/badlink'
$ ember serve
version: 0.0.46-master-615fd3506d
Livereload server on port 35729
Serving on http://0.0.0.0:4200
Error: ENOENT, stat '/Users/edward/hacking/pristine-cli/tmp/tree_merger-tmp_dest_dir-zfvW7cri.tmp/badlink'

Which still isn't awesome, but at least gives you a useful clue about what's breaking your build.

@stefanpenner
Copy link
Contributor

I know it's a tricky area to test but it would be a huge help if we can get this under coverage

@rwjblue
Copy link
Member

rwjblue commented Sep 18, 2014

👍 - Would love a test, but am OK without if it proves too tricky....

rwjblue added a commit that referenced this pull request Sep 19, 2014
@rwjblue rwjblue merged commit 003a7e9 into ember-cli:master Sep 19, 2014
@rwjblue
Copy link
Member

rwjblue commented Sep 19, 2014

Would love tests for this, but it is a much needed fix...

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

Successfully merging this pull request may close these issues.

3 participants