Skip to content

Commit 852ee04

Browse files
committed
fix: Handle WeakRef
1 parent 5e81dc4 commit 852ee04

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/appmap/event.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,12 @@ def default_display_string(value)
111111
rescue NoMethodError
112112
begin
113113
value.inspect
114-
rescue StandardError
114+
rescue
115115
last_resort_string.call
116116
end
117-
rescue StandardError
117+
rescue WeakRef::RefError
118+
nil
119+
rescue
118120
last_resort_string.call
119121
end
120122
end

0 commit comments

Comments
 (0)