flex icon indicating copy to clipboard operation
flex copied to clipboard

How to best rescue from

Open AlanMcCann opened this issue 10 years ago • 1 comments

I'm trying to figure out how to rescue from a Flex::HttpError 404 404: {"found":false error. when attempting to delete an item from the index that doesn't exist. It is an edge case where a deleted active record entry isn't removed from the index but I need to handle it at this point.

I would prefer that Flex handled this differently but I can understand the approach.

I just don't know how to rescue/recover - where to put the rescue code.

AlanMcCann avatar Jan 08 '15 15:01 AlanMcCann

If you just don't want to raise the error, add :raise => false to the variables... does that help?

ddnexus avatar Jan 08 '15 15:01 ddnexus