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

writeError now looks for filename as well as file #3848

Merged
merged 1 commit into from
May 6, 2015

Conversation

wagenet
Copy link
Contributor

@wagenet wagenet commented Apr 8, 2015

UglifyJS sets the filename but not the file. This change now gives
us line and column for UglifyJS errors.

if (error.file) {
var file = error.file;
// Uglify errors have a filename instead
if (error.file || error.filename) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you do var fileName = error.file || error.fileName; and then the conditional?

@stefanpenner
Copy link
Contributor

This will be handy!

This also needs a test

@stefanpenner stefanpenner added this to the v0.2.4 milestone Apr 8, 2015
UglifyJS sets the filename but not the file. This change now gives
us line and column for UglifyJS errors.
@wagenet
Copy link
Contributor Author

wagenet commented May 3, 2015

@stefanpenner, got your tests now

@stefanpenner
Copy link
Contributor

restarting appveyor

stefanpenner added a commit that referenced this pull request May 6, 2015
writeError now looks for filename as well as file
@stefanpenner stefanpenner merged commit b878608 into ember-cli:master May 6, 2015
@twokul twokul removed the in progress label May 6, 2015
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.

None yet

4 participants