Skip to content

fix: use e.message instead of e.error.message in generic rescue#3122

Open
Ocheretovich wants to merge 1 commit into
stripe-samples:mainfrom
Ocheretovich:patch-1
Open

fix: use e.message instead of e.error.message in generic rescue#3122
Ocheretovich wants to merge 1 commit into
stripe-samples:mainfrom
Ocheretovich:patch-1

Conversation

@Ocheretovich
Copy link
Copy Markdown

The generic rescue block was calling e.error.message, which only exists on Stripe::StripeError. For any standard Ruby exception this raises NoMethodError, crashing the error handler itself. Changed to e.message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant