mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
change Raven?.captureException to not log json, might be causing error
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user