forked from External/greenlight
GRN2-265: No longer throws 500 if provider not included (#944)
* No longer throws 500 if provider not included * Rubocop fix
This commit is contained in:
parent
3641f1b953
commit
31258272c2
|
@ -220,6 +220,7 @@ class ApplicationController < ActionController::Base
|
|||
logger.error "Error in retrieve provider info: #{e}"
|
||||
# Use the default site settings
|
||||
@user_domain = "greenlight"
|
||||
@settings = Setting.find_or_create_by(provider: @user_domain)
|
||||
|
||||
if e.message.eql? "No user with that id exists"
|
||||
render "errors/greenlight_error", locals: { message: I18n.t("errors.not_found.user_not_found.message"),
|
||||
|
|
Loading…
Reference in New Issue