kontrol 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|