Permalink
Browse files

show off amans new exceptions handling stuff

  • Loading branch information...
1 parent 2022589 commit 9d531a2ec982cf76c2248896aa779b830513033a @raggi raggi committed Sep 14, 2009
Showing with 7 additions and 1 deletion.
  1. +7 −1 examples/basic.ru
View
@@ -4,6 +4,8 @@ require 'sinatra/async'
class AsyncTest < Sinatra::Base
register Sinatra::Async
+ enable :show_exceptions
+
aget '/' do
body "hello async"
end
@@ -12,6 +14,10 @@ class AsyncTest < Sinatra::Base
EM.add_timer(n.to_i) { body { "delayed for #{n} seconds" } }
end
+ aget '/raise' do
+ raise 'boom'
+ end
+
end
-run AsyncTest.new
+run AsyncTest.new

0 comments on commit 9d531a2

Please sign in to comment.