mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
log attempted update when throwing error in DiffGenerator
This commit is contained in:
@@ -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) ->
|
||||
|
||||
Reference in New Issue
Block a user