Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

show off amans new exceptions handling stuff

  • Loading branch information...
commit 9d531a2ec982cf76c2248896aa779b830513033a 1 parent 2022589
@raggi raggi authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 examples/basic.ru
View
8 examples/basic.ru
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.