Closed mfn closed 11 years ago
@ConradIrwin - I didn't finish this, because I'm barely propping up my eyelids. It's maybe a start?: https://github.com/ConradIrwin/pry-rescue/tree/handle-syntax-errors
This should now open a pry console just like any other error, please let me know if you're still having difficulties.
Running
rescue
on a script with an syntax error conceals the real error:A simple workaround at the shell level is easily possible:
ruby -c script.rb && rescue script.rb
.But maybe there's also a nice way to make rescue more robust in this regard.