1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Merge branch '3_x'

This commit is contained in:
Mike Perham 2015-12-11 08:40:44 -08:00
commit 7686012b07

View file

@ -96,7 +96,7 @@ module Sidekiq
# App code can stuff all sorts of crazy binary data into the error message
# that won't convert to JSON.
m = exception.message[0..10_000]
m = exception.message.to_s[0, 10_000]
if m.respond_to?(:scrub!)
m.force_encoding("utf-8")
m.scrub!