Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
tighter sinatra support
  • Loading branch information
wal committed Jan 27, 2010
1 parent cf94171 commit 654f50e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -5,3 +5,4 @@ exceptional-*.gem
doc
log
pkg/*
_site
1 change: 1 addition & 0 deletions lib/exceptional.rb
Expand Up @@ -10,6 +10,7 @@
require 'exceptional/rack_exception_data'
require 'exceptional/remote'
require 'exceptional/integration/rack'
require 'exceptional/integration/sinatra'
require 'exceptional/version'

module Exceptional
Expand Down
6 changes: 6 additions & 0 deletions lib/exceptional/integration/sinatra.rb
@@ -0,0 +1,6 @@
if defined? Sinatra::Request
error do
Exceptional.handle_with_rack(request.env['sinatra.error'], request.env, request)
raise request.env['sinatra.error']
end
end

0 comments on commit 654f50e

Please sign in to comment.