lib/tapioca/commands/abstract_gem.rb in tapioca-0.16.0 vs lib/tapioca/commands/abstract_gem.rb in tapioca-0.16.1
- old
+ new
@@ -117,10 +117,17 @@
default_command(:gem, gem.name),
reason: "types exported from the `#{gem.name}` gem",
) if @file_header
rbi.root = Runtime::Trackers::Autoload.with_disabled_exits do
- Tapioca::Gem::Pipeline.new(gem, include_doc: @include_doc, include_loc: @include_loc).compile
+ Tapioca::Gem::Pipeline.new(
+ gem,
+ include_doc: @include_doc,
+ include_loc: @include_loc,
+ error_handler: ->(error) {
+ say_error(error, :bold, :red)
+ },
+ ).compile
end
merge_with_exported_rbi(gem, rbi) if @include_exported_rbis
if rbi.empty?