You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/utopia/exceptions/handler.rb
+19-54Lines changed: 19 additions & 54 deletions
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,8 @@
3
3
# Released under the MIT License.
4
4
# Copyright, 2014-2025, by Samuel Williams.
5
5
6
+
require'console'
7
+
6
8
moduleUtopia
7
9
moduleExceptions
8
10
# A middleware which catches exceptions and performs an internal redirect.
@@ -22,68 +24,31 @@ def freeze
22
24
super
23
25
end
24
26
25
-
# Generate a very simple fatal error response. This function should be unlikely to fail. Additionally, it generates a lowest common denominator response which should be suitable as a response to any kind of request. Ideally, this response is also not good or useful for any kind of higher level browser or API client, as this is not a normal error path but one that represents broken behaviour.
0 commit comments