kontrol 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/kontrol/application.rb +7 -0
- metadata +1 -1
data/lib/kontrol/application.rb
CHANGED
@@ -123,6 +123,13 @@ module Kontrol
|
|
123
123
|
|
124
124
|
response['Content-Type'] = guess_content_type if response['Content-Type'].empty?
|
125
125
|
response.finish
|
126
|
+
|
127
|
+
rescue => exception
|
128
|
+
if ENV['RACK_ENV'] == 'production' and defined?(HoptoadNotifier)
|
129
|
+
HoptoadNotifier.notify(exception)
|
130
|
+
else
|
131
|
+
raise exception
|
132
|
+
end
|
126
133
|
end
|
127
134
|
|
128
135
|
def inspect
|