From 8763e444e97e6f9ec66aa475548ff14bf732a591 Mon Sep 17 00:00:00 2001 From: James Allen Date: Thu, 3 Nov 2016 11:23:27 +0000 Subject: [PATCH] Include aceDelta in error message --- .../ide/editor/directives/aceEditor/undo/UndoManager.coffee | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/services/web/public/coffee/ide/editor/directives/aceEditor/undo/UndoManager.coffee b/services/web/public/coffee/ide/editor/directives/aceEditor/undo/UndoManager.coffee index de6c273c08..ba06c3eb50 100644 --- a/services/web/public/coffee/ide/editor/directives/aceEditor/undo/UndoManager.coffee +++ b/services/web/public/coffee/ide/editor/directives/aceEditor/undo/UndoManager.coffee @@ -232,7 +232,6 @@ define [ _aceDeltaToSimpleDelta: (aceDelta, docLines) -> start = aceDelta.start if !start? - error = new Error("aceDelta had no start event.") JSONstringifyWithCycles = (o) -> seen = [] return JSON.stringify o, (k,v) -> @@ -241,9 +240,7 @@ define [ return '__cycle__' seen.push(v); return v - Raven?.captureException(error, { - aceDelta: JSONstringifyWithCycles(aceDelta) - }) + error = new Error("aceDelta had no start event: #{JSONstringifyWithCycles(aceDelta)}") throw error linesBefore = docLines.slice(0, start.row) position =