Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,12 @@ def check_init
rescue => exception
@settings.update_attribute :initialized_flag, false
sign_out current_user
redirect_to new_user_registration_url, :flash => { :error => "An error occurred, please contact [email protected]: #{exception.message}" }
if(exception.message == "Invalid credentials" && Rails.env.development?)
errorMsg = 'Invalid credentials, check Crowdtilt API Key and API Secret'
else
errorMsg = exception.message
end
redirect_to new_user_registration_url, :flash => { :error => "An error occurred, please contact [email protected]: #{errorMsg}" }
return
else
@settings.update_attribute :ct_sandbox_guest_id, sandbox_guest['user']['id']
Expand Down