Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
refactor pry internal error system to use tagged exceptions #781
def pry_raise(ex, msg="") e = ex.exception e.extend Pry::Error Pry.last_internal_error = e raise e, msg end
This way we can raise any type of exception we want and it'll be properly handled by the repl loop (which will capture Pry::Error and indicate it's an internal error); we'll also have access to it in