fix(delta): report error when delta gets invalid cursor

This commit is contained in:
Evan Morikawa 2017-02-14 10:46:53 -08:00
parent f07be909f4
commit 2825a3553e
2 changed files with 2 additions and 1 deletions

View file

@ -26,6 +26,7 @@ class DeltaStreamingConnection extends NylasLongConnection {
onError(err) {
if (err.message.includes('Invalid cursor')) {
const error = new Error('Delta Connection: Cursor is invalid. Need to blow away local cache.');
NylasEnv.reportError(error)
this._setCursor(0)
DatabaseStore._handleSetupError(error)
}

2
src/K2

@ -1 +1 @@
Subproject commit 50e02f88e9fdfe50d0bdf11445d9673fed106ed1
Subproject commit eab4ed7fb3e86b1de8b97d40af3a0155b4cee690