Skip to content

Commit

Permalink
guard against nil value
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorntrondsen committed Jan 7, 2014
1 parent 910779c commit 41505cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rails_exception_handler/parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ def initialize(env, request, exception, controller)
def parse
@internal_info[:error_class] = @exception.class.to_s
@internal_info[:target_url] = @request.url
@internal_info[:referer_url] = @request.referer
@internal_info[:user_agent] = @request.user_agent
@internal_info[:referer_url] = @request.referer || ""
@internal_info[:user_agent] = @request.user_agent || ""

config = RailsExceptionHandler.configuration
config.request_info_block.call(@external_info, @request) if(config.request_info_block)
Expand Down

0 comments on commit 41505cf

Please sign in to comment.