Skip to content

Commit

Permalink
Log signature errors
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-monroe committed Aug 6, 2024
1 parent e0cb492 commit a131c53
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/tapioca/runtime/reflection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ def qualified_name_of(constant)
sig { params(method: T.any(UnboundMethod, Method)).returns(T.untyped) }
def signature_of(method)
T::Utils.signature_for_method(method)
rescue LoadError, StandardError
rescue LoadError, StandardError => e
$stderr.puts "Error loading signature for method: #{method.owner}##{method.name}: #{e.inspect.squish}"
$stderr.puts " The generated signature is likely inaccurate..."
nil
end

Expand Down

0 comments on commit a131c53

Please sign in to comment.