We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e4a8f2 commit ab04805Copy full SHA for ab04805
app/controllers/better_together/application_controller.rb
@@ -36,6 +36,10 @@ def user_not_authorized(exception)
36
37
def handle_error(exception)
38
# rubocop:todo Layout/LineLength
39
+
40
+ # call error reporting
41
+ error_reporting(exception)
42
43
flash.now[:error] = exception.message # Set the exception message as an error flash message for the current request
44
# rubocop:enable Layout/LineLength
45
respond_to do |format|
@@ -48,5 +52,9 @@ def handle_error(exception)
48
52
format.html { render 'errors/500', status: :internal_server_error }
49
53
end
50
54
55
56
+ protected
57
58
+ def error_reporting(exception); end
51
59
60
0 commit comments