Skip to content

Make default_render failures not set an error cause - #257

Open
gmcgibbon wants to merge 1 commit into
heartcombo:mainfrom
gmcgibbon:rescue_cause_clear_on_default_render
Open

Make default_render failures not set an error cause#257
gmcgibbon wants to merge 1 commit into
heartcombo:mainfrom
gmcgibbon:rescue_cause_clear_on_default_render

Conversation

@gmcgibbon

Copy link
Copy Markdown

I noticed in my app that when api_behaviour raises an error, the cause is set to ActionView::MissingTemplate for some reason, and it turns out this rescue is why. A default_render that fails should not set a cause of a subsequent api_behavior call if it results in an exception in Responder#to_format.

A default_render that fails should not set a cause of a subsequent
api_behavior call if it results in an exception in Responder#to_format.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant