mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
LoadError
is not a subclass of StandardError
This commit is contained in:
parent
f83bebdf7a
commit
5ad32d5504
1 changed files with 5 additions and 1 deletions
|
@ -1,6 +1,10 @@
|
|||
# frozen_string_literal: false
|
||||
require_relative 'test_optparse'
|
||||
require "did_you_mean" rescue return
|
||||
begin
|
||||
require "did_you_mean"
|
||||
rescue LoadError
|
||||
return
|
||||
end
|
||||
|
||||
class TestOptionParser::DidYouMean < TestOptionParser
|
||||
def setup
|
||||
|
|
Loading…
Add table
Reference in a new issue