Skip to content

Commit

Permalink
Show the correct exception when the stty backend cannot be required
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon authored and headius committed May 31, 2024
1 parent 74c78af commit 7fe3f97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ffi/io/console.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@
require_relative 'console/stty_console'
ready = true

rescue Exception
rescue Exception => ex2

warn "failed to load stty console support: #{ex}" if $VERBOSE
warn "failed to load stty console support: #{ex2}" if $VERBOSE
ready = false

end
Expand Down

0 comments on commit 7fe3f97

Please sign in to comment.