mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-23 13:51:11 +00:00
change Raven?.captureException to not log json, might be causing error
This commit is contained in:
parent
8638b531a5
commit
c98c2db6be
1 changed files with 2 additions and 2 deletions
|
@ -51,9 +51,9 @@ define [
|
|||
if messages.length < MESSAGE_LIMIT
|
||||
chat.state.atEnd = true
|
||||
if !messages.reverse?
|
||||
Raven?.captureException(new Error("messages has no reverse property #{JSON.stringify(messages)}"))
|
||||
Raven?.captureException(new Error("messages has no reverse property #{typeof(messages)}"))
|
||||
if typeof messages.reverse isnt 'function'
|
||||
Raven?.captureException(new Error("messages.reverse not a function #{typeof(messages.reverse)} #{JSON.stringify(messages)}"))
|
||||
Raven?.captureException(new Error("messages.reverse not a function #{typeof(messages.reverse)} #{typeof(messages)}"))
|
||||
chat.state.errored = true
|
||||
else
|
||||
messages.reverse()
|
||||
|
|
Loading…
Reference in a new issue