Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

How to best rescue from #30

Open
AlanMcCann opened this issue Jan 8, 2015 · 1 comment
Open

How to best rescue from #30

AlanMcCann opened this issue Jan 8, 2015 · 1 comment

Comments

@AlanMcCann
Copy link

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.

@ddnexus
Copy link
Owner

ddnexus commented Jan 8, 2015

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants