Skip to content

Commit

Permalink
Merge pull request #53 from alphagov/log_sso_name_email_upon_500
Browse files Browse the repository at this point in the history
log sso name and email upon 500 error
  • Loading branch information
jamiecobbett committed Mar 25, 2013
2 parents 7972910 + ca1fb13 commit a41884b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/requests_controller.rb
Expand Up @@ -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 }
Expand Down

0 comments on commit a41884b

Please sign in to comment.