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

add source filename info whe evaluating .jbuilder files #12

Merged
merged 1 commit into from
Aug 26, 2014

Conversation

cervinka
Copy link
Contributor

It's quite hard to find errors in .jbuilder files. When there is an error in it, the stacktrace looks like:

NoMethodError - undefined method `id' for nil:NilClass:
  tilt-jbuilder (0.6.0) lib/tilt/jbuilder.rb:109:in `block (4 levels) in evaluate'
  ...

Where line 109 doesn't even exist in jbuilder.rb file. No clue where the error can be... :-(

With my modification the stacktrace looks like:

NoMethodError - undefined method `id' for nil:NilClass:
  app/views/api/product.jbuilder:63:in `block (4 levels) in evaluate'
  ...

we now know exactly where the error is!

@anthonator
Copy link
Owner

Awesome!

anthonator pushed a commit that referenced this pull request Aug 26, 2014
add source filename info whe evaluating .jbuilder files
@anthonator anthonator merged commit 50a996e into anthonator:master Aug 26, 2014
@anthonator
Copy link
Owner

Pushed version 0.6.1 to rubygems.

@cervinka cervinka deleted the debug_info_to_eval branch August 26, 2014 14:45
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

2 participants