Skip to content

Exceptions from within promises #566

Closed
@staugaard

Description

@staugaard

It looks like the RescueMiddleware does not handle exceptions coming from within promises.

When we hit a ActiveRecord::RecordNotFound in a non-lazy resolver then the middleware takes care of it, but when we hit that same exception inside a lazy promise resolver, then the error makes it's way all the way out to the rails controller.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions