Skip to content

Commit

Permalink
Added date to exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
tayler1 committed Jul 28, 2014
1 parent dcf9b68 commit bbff3d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sinatra/base.rb
Expand Up @@ -1140,7 +1140,7 @@ def error_block!(key, *block_params)
end

def dump_errors!(boom)
msg = ["#{boom.class} - #{boom.message}:", *boom.backtrace].join("\n\t")
msg = ["#{Time.now.httpdate} - #{boom.class} - #{boom.message}:", *boom.backtrace].join("\n\t")
@env['rack.errors'].puts(msg)
end

Expand Down

0 comments on commit bbff3d8

Please sign in to comment.