Skip to content

Commit

Permalink
rescue standard error
Browse files Browse the repository at this point in the history
  • Loading branch information
copiousfreetime committed May 3, 2024
1 parent f2e9fed commit 8703e92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/launchy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def open(uri_s, options = {}, &error_block)
app.new.open(uri, leftover)
rescue Launchy::Error => le
raise le
rescue Exception => e
rescue StandardError => e
msg = "Failure in opening uri #{uri_s.inspect} with options #{options.inspect}: #{e}"
raise Launchy::Error, msg
ensure
Expand Down

0 comments on commit 8703e92

Please sign in to comment.