ConradIrwin / pry-rescue

Start a pry session whenever something goes wrong.
MIT License
848 stars 49 forks source link

How to ignore certain errors? #36

Open cvengros opened 11 years ago

cvengros commented 11 years ago

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 commented 10 years ago

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

GantMan commented 10 years ago

:+1: on ignoring skip.

Blue-Dog-Archolite commented 10 years ago

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

tensiondriven commented 10 years ago

Ignore skip: https://github.com/ConradIrwin/pry-rescue/issues/65

vincentwoo commented 10 years ago

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

Blue-Dog-Archolite commented 10 years ago

Nice. I'll do some digging. On May 10, 2014 9:17 PM, "Vincent Woo" notifications@github.com 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/ConradIrwin/pry-rescue/issues/36#issuecomment-42760334 .