summaryrefslogtreecommitdiff
path: root/ext/json/lib
diff options
context:
space:
mode:
authorRahim Packir Saibo <[email protected]>2025-03-05 18:03:03 +0000
committerHiroshi SHIBATA <[email protected]>2025-03-06 18:29:27 +0900
commite20f1f76f4d7479faa112b612ba6f712a46c49fc ()
tree220f6d4009c1fbbcfc19df429ba6761c37e0b51e /ext/json/lib
parentf7af75d3d9239dadd66382e421f63790ad46aeb7 (diff)
[ruby/json] Fix JSON::GeneratorError#detailed_message with Ruby < 3.2
https://.com/ruby/json/commit/2e015ff839
-rw-r--r--ext/json/lib/json/common.rb7
1 files changed, 5 insertions, 2 deletions
@@ -152,10 +152,13 @@ module JSON
end
def detailed_message(...)
if @invalid_object.nil?
- super
else
- "#{super}\nInvalid object: #{@invalid_object.inspect}"
end
end
end