mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-03 13:02:31 +00:00
Include aceDelta in error message
This commit is contained in:
parent
67aabdd200
commit
8763e444e9
1 changed files with 1 additions and 4 deletions
|
@ -232,7 +232,6 @@ define [
|
|||
_aceDeltaToSimpleDelta: (aceDelta, docLines) ->
|
||||
start = aceDelta.start
|
||||
if !start?
|
||||
error = new Error("aceDelta had no start event.")
|
||||
JSONstringifyWithCycles = (o) ->
|
||||
seen = []
|
||||
return JSON.stringify o, (k,v) ->
|
||||
|
@ -241,9 +240,7 @@ define [
|
|||
return '__cycle__'
|
||||
seen.push(v);
|
||||
return v
|
||||
Raven?.captureException(error, {
|
||||
aceDelta: JSONstringifyWithCycles(aceDelta)
|
||||
})
|
||||
error = new Error("aceDelta had no start event: #{JSONstringifyWithCycles(aceDelta)}")
|
||||
throw error
|
||||
linesBefore = docLines.slice(0, start.row)
|
||||
position =
|
||||
|
|
Loading…
Reference in a new issue