Skip to content
Browse files

Merge pull request #53 from alphagov/log_sso_name_email_upon_500

log sso name and email upon 500 error
  • Loading branch information...
2 parents 7972910 + ca1fb13 commit a41884b3acd5a5bf6133afdb94a986e76fe3aa3a @jamiecobbett jamiecobbett committed
Showing with 1 addition and 0 deletions.
  1. +1 −0 app/controllers/requests_controller.rb
View
1 app/controllers/requests_controller.rb
@@ -38,6 +38,7 @@ def raise_ticket(ticket)
return render "support/zendesk_error", locals: { error_string: "Zendesk timed out", ticket: ticket }
end
rescue GDSZendesk::ZendeskError => e
+ request.env["sso-credentials"] = "#{current_user.name} <#{current_user.email}>"
ExceptionNotifier::Notifier.exception_notification(request.env, e).deliver
render "support/zendesk_error", status: 500, locals: { error_string: e.underlying_message,
ticket: ticket }

0 comments on commit a41884b

Please sign in to comment.
Something went wrong with that request. Please try again.