Skip to content

Use exception#cause if available (MRI Ruby 2.1+)#325

Closed
jonatack wants to merge 1 commit intoBetterErrors:masterfrom
jonatack:use-exception-cause-over-deprecated-original-exception
Closed

Use exception#cause if available (MRI Ruby 2.1+)#325
jonatack wants to merge 1 commit intoBetterErrors:masterfrom
jonatack:use-exception-cause-over-deprecated-original-exception

Conversation

@jonatack
Copy link

original_exception is deprecated in Rails 5 in favor of #cause (see rails/rails#18774).

See rails/rails#18774.

exception#cause has been available in MRI Ruby since 2.1.
@rjrobinson
Copy link

Anyone able to resolve these conflicts?

@RobinDaugherty
Copy link
Member

RobinDaugherty commented Jul 30, 2017

Thanks for your help! This was fixed in release 2.2.0, which was released yesterday.

@jonatack jonatack deleted the use-exception-cause-over-deprecated-original-exception branch July 30, 2017 16:36
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.

3 participants