mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
Send more data to Sentry to track down error
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user