mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Throw fatal error if document update actually returns an error from the real-time service
This commit is contained in:
parent
0175a86d4c
commit
39e57a9886
1 changed files with 2 additions and 1 deletions
|
@ -34,7 +34,8 @@ define [
|
||||||
if window.dropUpdates? and Math.random() < window.dropUpdates
|
if window.dropUpdates? and Math.random() < window.dropUpdates
|
||||||
sl_console.log "Simulating a lost update", update
|
sl_console.log "Simulating a lost update", update
|
||||||
return
|
return
|
||||||
@socket.emit "applyOtUpdate", @doc_id, update
|
@socket.emit "applyOtUpdate", @doc_id, update, (error) =>
|
||||||
|
return @_handleError(error) if error?
|
||||||
state: "ok"
|
state: "ok"
|
||||||
id: @socket.socket.sessionid
|
id: @socket.socket.sessionid
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue