lib/thomler.rb in thomler-0.1.7 vs lib/thomler.rb in thomler-0.1.8
- old
+ new
@@ -10,12 +10,11 @@
end
klass, act = get_controller_and_action(env)
controller = klass.new(env)
begin
text = controller.send(act)
- rescue Exception => e
- puts e.message
- puts e.backtrace.inspect
+ rescue Exception
+ return [404, {'Content-Type' => 'text/html'}, []]
end
[200, {'Content-Type' => 'text/html'}, [text]]
end
end