lib/jellyfish.rb in jellyfish-0.9.1 vs lib/jellyfish.rb in jellyfish-0.9.2

- old
+ new

@@ -181,11 +181,11 @@ when Response handle(ctrl, res, env['rack.errors']) else res || ctrl.block_call(nil, Identity) end - rescue Exception => e + rescue => e handle(ctrl, e, env['rack.errors']) end def log_error e, stderr return unless stderr @@ -198,10 +198,10 @@ end private def forward ctrl, env app.call(env) - rescue Exception => e + rescue => e handle(ctrl, e, env['rack.errors']) end def handle ctrl, e, stderr=nil if handler = best_handler(e)