I'm trying to use pry-rescue inside of a rake task. Something like this:
bundle exec rescue rake my:task
But when an exception occurs (undefined method...
) it just exists like normal. How can I use pry-rescue with my rake task?
I'm trying to use pry-rescue inside of a rake task. Something like this:
bundle exec rescue rake my:task
But when an exception occurs (undefined method...
) it just exists like normal. How can I use pry-rescue with my rake task?
Did you try wrapping your task body in a rescue block?
task 'my_task' do
Pry.rescue {
things.that_need_doing
}
end