diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index ddc07cdf..6a767602 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -22,9 +22,6 @@ class ApplicationController < ActionController::Base before_action :redirect_to_https, :set_user_domain, :set_user_settings, :maintenance_mode?, :migration_error?, :user_locale, :check_admin_password, :check_user_role - # Manually handle BigBlueButton errors - rescue_from BigBlueButton::BigBlueButtonException, with: :handle_bigbluebutton_error - protect_from_forgery with: :exceptions # Retrieves the current user. @@ -193,8 +190,9 @@ class ApplicationController < ActionController::Base payload[:host] = @user_domain end - # Manually Handle BigBlueButton errors - def handle_bigbluebutton_error + # Manually handle BigBlueButton errors + rescue_from BigBlueButton::BigBlueButtonException do |ex| + logger.error "BigBlueButtonException: #{ex}" render "errors/bigbluebutton_error" end