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:
commit
7686012b07
1 changed files with 1 additions and 1 deletions
|
@ -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!
|
||||
|
|
Loading…
Add table
Reference in a new issue