mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Add in extra sentry logging for undefined start in aceDelta
This commit is contained in:
parent
1beca53b3d
commit
05cd6e69a7
1 changed files with 6 additions and 0 deletions
|
@ -231,6 +231,12 @@ define [
|
||||||
|
|
||||||
_aceDeltaToSimpleDelta: (aceDelta, docLines) ->
|
_aceDeltaToSimpleDelta: (aceDelta, docLines) ->
|
||||||
start = aceDelta.start
|
start = aceDelta.start
|
||||||
|
if !start?
|
||||||
|
error = new Error("aceDelta had no start event.")
|
||||||
|
Raven?.captureException(error, {
|
||||||
|
aceDelta: JSON.stringify(aceDelta)
|
||||||
|
})
|
||||||
|
throw error
|
||||||
linesBefore = docLines.slice(0, start.row)
|
linesBefore = docLines.slice(0, start.row)
|
||||||
position =
|
position =
|
||||||
linesBefore.join("").length + # full lines
|
linesBefore.join("").length + # full lines
|
||||||
|
|
Loading…
Reference in a new issue