Skip to content

fix(controllers): stop rescuing Exception in datebooks#show and reviews#new - #1140

Open
raulriera wants to merge 1 commit into
masterfrom
fix/narrow-rescue-exception
Open

fix(controllers): stop rescuing Exception in datebooks#show and reviews#new#1140
raulriera wants to merge 1 commit into
masterfrom
fix/narrow-rescue-exception

Conversation

@raulriera

Copy link
Copy Markdown
Member

Summary

  • Both actions wrapped their bodies in rescue Exception, which swallows signals, timeouts and every other non-recoverable error
  • datebooks#show now rescues only ActiveRecord::RecordNotFound (its one recoverable failure); reviews#new rescues RecordNotFound, ArgumentError, RuntimeError — the Cipher decode failure modes, matching the existing pattern in doctors#appointments
  • Adds a pin test for the missing-datebook redirect

Test plan

  • Red tests prove Interrupt is swallowed at both sites
  • Green after narrowing
  • Full suite passes (525 runs, 0 failures)

…ws#new

rescue Exception swallows everything including signals and timeouts.
Narrow datebooks#show to RecordNotFound (its only recoverable failure)
and reviews#new to RecordNotFound/ArgumentError/RuntimeError (the
Cipher decode failures, matching doctors#appointments). Pins the
missing-datebook redirect behavior with a test.
@github-actions github-actions Bot added the fix A bug has been resolved label Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix A bug has been resolved

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant