lib/raven/okjson.rb in sentry-raven-0.12.2 vs lib/raven/okjson.rb in sentry-raven-0.12.3
- old
+ new
@@ -79,10 +79,10 @@
when Numeric then numenc(x)
when true then "true"
when false then "false"
when nil then "null"
else
- raise Error, "cannot encode #{x.class}: #{x.inspect}"
+ strenc((x.inspect rescue $!.to_s))
end
end
private