Fix for focus and error reporting

This commit is contained in:
Godwin
2016-06-13 23:03:29 -07:00
parent a099059f2e
commit 6781b41e04
3 changed files with 33 additions and 29 deletions
+8 -2
View File
@@ -159,10 +159,16 @@ class ApplicationController < LinguaFrancaApplicationController
params,
current_user,
).deliver_now if Rails.env.preview? || Rails.env.production?
# log the error
logger.info exception.to_s
logger.info exception.backtrace.join("\n")
# show the error page
error_500 exception
raise exception
# raise the error if we are in development so that we can debug it
raise exception if Rails.env.development?
end
def generate_confirmation(user, url, expiry = nil)