Skip to content

Commit

Permalink
catch rbs require LoadError
Browse files Browse the repository at this point in the history
  • Loading branch information
tompng committed Oct 16, 2023
1 parent 0fa5a44 commit f6476b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/katakata_irb/types.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def self.load_rbs_builder
loader = RBS::CLI::LibraryOptions.new.loader
loader.add path: Pathname('sig')
RBS::DefinitionBuilder.new env: RBS::Environment.from_loader(loader).resolve_type_names
rescue => e
rescue LoadError, StandardError => e
@rbs_load_error = e
puts "\r\nKatakataIRB failed to initialize RBS::DefinitionBuilder: #{e.class}\r\n"
puts "See `KatakataIrb::Types.rbs_load_error` for more details.\r\n"
Expand Down

0 comments on commit f6476b2

Please sign in to comment.