lib/raven/okjson.rb in sentry-raven-0.13.3 vs lib/raven/okjson.rb in sentry-raven-0.14.0
- old
+ new
@@ -497,10 +497,10 @@
end
def numenc(x)
if ((x.nan? || x.infinite?) rescue false)
- raise Error, "Numeric cannot be represented: #{x}"
+ return strenc(x.to_s)
end
"#{x}"
end