Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

tighter sinatra support

  • Loading branch information...
commit 654f50e9cb53a38267510b22f68a35b1d16a9927 1 parent cf94171
@wal wal authored
View
1  .gitignore
@@ -5,3 +5,4 @@ exceptional-*.gem
doc
log
pkg/*
+_site
View
1  lib/exceptional.rb
@@ -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
View
6 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
Please sign in to comment.
Something went wrong with that request. Please try again.