mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-20 04:13:39 +00:00
log attempted update when throwing error in DiffGenerator
This commit is contained in:
parent
6db310bf6b
commit
1a1fa8798d
1 changed files with 5 additions and 1 deletions
|
@ -50,7 +50,11 @@ module.exports = DiffGenerator =
|
|||
|
||||
rewindUpdates: (content, updates) ->
|
||||
for update in updates.reverse()
|
||||
content = DiffGenerator.rewindUpdate(content, update)
|
||||
try
|
||||
content = DiffGenerator.rewindUpdate(content, update)
|
||||
catch e
|
||||
e.attempted_update = update # keep a record of the attempted update
|
||||
throw e # rethrow the exception
|
||||
return content
|
||||
|
||||
buildDiff: (initialContent, updates) ->
|
||||
|
|
Loading…
Add table
Reference in a new issue