Skip to content

Commit 4f7814d

Browse files
committed
test
1 parent ddcc5be commit 4f7814d

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# This controller is for testing Sentry integration only. Do not enable in production.
2+
class SentryTestController < ApplicationController
3+
# GET /sentry_test/error
4+
def error
5+
raise "Sentry test error: This is a test exception to verify Sentry reporting."
6+
end
7+
end

config/routes.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -597,5 +597,10 @@
597597
get "email/:key", to: "static#email", as: "email"
598598
get "english-language-guidance", to: "static#english_language_guidance"
599599

600+
# Sentry test route (do not enable in production)
601+
if !Rails.env.production?
602+
get "sentry_test/error", to: "sentry_test#error"
603+
end
604+
600605
root to: redirect("/eligibility")
601606
end

0 commit comments

Comments
 (0)