Skip to content

Commit

Permalink
Add options to first Fiber#resume
Browse files Browse the repository at this point in the history
  • Loading branch information
tzmfreedom committed Mar 14, 2018
1 parent 946281d commit f0f6f2d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/better_errors/repl/pry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ def initialize(binding, exception)
@pry = ::Pry.new input: @input, output: @output
@pry.hooks.clear_all if defined?(@pry.hooks.clear_all)
store_last_exception exception
@fiber.resume
local ::Pry.config, color: false, pager: false do
@fiber.resume
end
end

def store_last_exception(exception)
Expand Down

0 comments on commit f0f6f2d

Please sign in to comment.