Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to ignore certain errors? #36

Open
cvengros opened this issue Jul 10, 2013 · 6 comments
Open

How to ignore certain errors? #36

cvengros opened this issue Jul 10, 2013 · 6 comments

Comments

@cvengros
Copy link

I'm using pry-rescue with rack and Grape framework for developing a REST API.

The way how to return a HTTP 403 unauthorized from the API is through an exception. I don't want to catch this with pry, even though it's there. Is there a way how to ignore an exception (not firing pry) by exception class or by code block?

Thanks.

@Blue-Dog-Archolite
Copy link

Also, I was wondering if you could configure pry-rescue to ignore "skip"

@GantMan
Copy link

GantMan commented Nov 14, 2013

👍 on ignoring skip.

@Blue-Dog-Archolite
Copy link

I am willing to do the work on this if i can get a bit of direction on where to look.

@tensiondriven
Copy link

Ignore skip: #65

@vincentwoo
Copy link
Collaborator

@Blue-Dog-Archolite
Copy link

Nice. I'll do some digging.
On May 10, 2014 9:17 PM, "Vincent Woo" [email protected] wrote:

@Blue-Dog-Archolite https://github.com/Blue-Dog-Archolite you could
perhaps try special casing here:
https://github.com/ConradIrwin/pry-rescue/blob/master/lib/pry-rescue.rb#L75


Reply to this email directly or view it on GitHubhttps://github.com//issues/36#issuecomment-42760334
.

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

No branches or pull requests

5 participants