Sfoglia il codice sorgente

change Raven?.captureException to not log json, might be causing error

Henry Oswald 11 anni fa
parent
commit
c98c2db6be

+ 2 - 2
services/web/public/coffee/ide/chat/services/chatMessages.coffee

@@ -51,9 +51,9 @@ define [
 					if messages.length < MESSAGE_LIMIT
 					if messages.length < MESSAGE_LIMIT
 						chat.state.atEnd = true
 						chat.state.atEnd = true
 					if !messages.reverse?
 					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'
 					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
 						chat.state.errored = true
 					else
 					else
 						messages.reverse()
 						messages.reverse()