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

Raise custom error on CoffeeScript compile fail. #2

Merged
merged 3 commits into from
Oct 10, 2011
Merged

Raise custom error on CoffeeScript compile fail. #2

merged 3 commits into from
Oct 10, 2011

Conversation

stereosteve
Copy link
Contributor

Shows the filename in the backtrace when you have a CoffeeScript error.

Before:

ERROR: Stitching failed: too many ) on line 66

After:

ERROR: Stitching failed: app/assets/javascripts/web/views.coffee: too many ) on line 66

(when using guard-stitch)

@maccman
Copy link
Owner

maccman commented Oct 10, 2011

Thanks! Could you use the 'filename' option with the compile() method though?

CoffeeScript.compile(source, filename: path)

@stereosteve
Copy link
Contributor Author

Yeah the filename argument does the trick. Updated the pull request accordingly.

maccman added a commit that referenced this pull request Oct 10, 2011
Raise custom error on CoffeeScript compile fail.
@maccman maccman merged commit 88520db into maccman:master Oct 10, 2011
@maccman
Copy link
Owner

maccman commented Oct 10, 2011

Awesome!

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.

2 participants