Send more data to Sentry to track down error

This commit is contained in:
James Allen 2015-01-07 13:12:00 +00:00
parent 923fbfc574
commit 10653c12fd

View file

@ -230,6 +230,8 @@ define [
} }
_aceDeltaToSimpleDelta: (aceDelta, docLines) -> _aceDeltaToSimpleDelta: (aceDelta, docLines) ->
if !aceDelta.range?
Raven?.captureException(new Error("Missing range in aceDelta"), { delta: aceDelta })
start = aceDelta.range.start start = aceDelta.range.start
linesBefore = docLines.slice(0, start.row) linesBefore = docLines.slice(0, start.row)
position = position =
@ -258,7 +260,7 @@ define [
remove: aceDelta.lines.join("\n") + "\n" remove: aceDelta.lines.join("\n") + "\n"
} }
else else
throw "Unknown Ace action: #{aceDelta.action}" throw new Error("Unknown Ace action: #{aceDelta.action}")
_simplePositionToAcePosition: (position, docLines) -> _simplePositionToAcePosition: (position, docLines) ->
column = 0 column = 0