mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-24 14:31:59 +00: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) ->
|
||||
if !aceDelta.range?
|
||||
Raven?.captureException(new Error("Missing range in aceDelta"), { delta: aceDelta })
|
||||
start = aceDelta.range.start
|
||||
linesBefore = docLines.slice(0, start.row)
|
||||
position =
|
||||
|
@ -258,7 +260,7 @@ define [
|
|||
remove: aceDelta.lines.join("\n") + "\n"
|
||||
}
|
||||
else
|
||||
throw "Unknown Ace action: #{aceDelta.action}"
|
||||
throw new Error("Unknown Ace action: #{aceDelta.action}")
|
||||
|
||||
_simplePositionToAcePosition: (position, docLines) ->
|
||||
column = 0
|
||||
|
|
Loading…
Reference in a new issue