Show
Ignore:
Timestamp:
02/23/08 12:14:48 (6 months ago)
Author:
seancribbs
Message:

#610 Bubble up parsing exceptions in development mode. [jonleighton]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/radiant/app/models/page_context.rb

    r628 r757  
    1818    super 
    1919  rescue Exception => e 
    20     raise e if testing
     20    raise e if raise_errors
    2121    @tag_binding_stack.pop unless @tag_binding_stack.last == binding 
    2222    render_error_message(e.message) 
     
    4040    end 
    4141     
    42     def testing
    43       RAILS_ENV == 'test
     42    def raise_errors
     43      RAILS_ENV != 'production
    4444    end 
    4545