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.
It looks like the
RescueMiddlewaredoes not handle exceptions coming from within promises.When we hit a
ActiveRecord::RecordNotFoundin 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.