Notify user of error if DSL error
authorBlake Mizerany <blake@blake.local>
Fri, 30 Nov 2007 01:57:07 +0000 (29 17:57 -0800)
committerBlake Mizerany <blake@blake.local>
Fri, 30 Nov 2007 01:57:07 +0000 (29 17:57 -0800)
lib/sinatra.rb

index 3fb90a6..9bb99a6 100644 (file)
@@ -442,5 +442,6 @@ class NilClass
 end
 
 at_exit do
+  raise $! if $!
   Sinatra.run if Sinatra.application.options.run
 end