mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Send more data to Sentry to track down error
This commit is contained in:
parent
923fbfc574
commit
10653c12fd
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue