Skip to content
This repository was archived by the owner on May 26, 2020. It is now read-only.
This repository was archived by the owner on May 26, 2020. It is now read-only.

Rescue in __define_method_with_matching__ obscures execution errors #20

@beezee

Description

@beezee

If I call something from a matched fn that triggers a NoMethodError or an ArgumentError, this is obscured by the rescue block here.

Even though the matched fn was found and executed, I'm given an exception that says otherwise, and the original error is obscured.

One option would be to tack original error onto the caught one for debug. Better would be to rescue around match, but not around execution of matched method.

Happy to open a PR for this if it's something you'd review and merge.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions