mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-24 16:14:01 +08:00
fix(delta): report error when delta gets invalid cursor
This commit is contained in:
parent
f07be909f4
commit
2825a3553e
2 changed files with 2 additions and 1 deletions
|
@ -26,6 +26,7 @@ class DeltaStreamingConnection extends NylasLongConnection {
|
||||||
onError(err) {
|
onError(err) {
|
||||||
if (err.message.includes('Invalid cursor')) {
|
if (err.message.includes('Invalid cursor')) {
|
||||||
const error = new Error('Delta Connection: Cursor is invalid. Need to blow away local cache.');
|
const error = new Error('Delta Connection: Cursor is invalid. Need to blow away local cache.');
|
||||||
|
NylasEnv.reportError(error)
|
||||||
this._setCursor(0)
|
this._setCursor(0)
|
||||||
DatabaseStore._handleSetupError(error)
|
DatabaseStore._handleSetupError(error)
|
||||||
}
|
}
|
||||||
|
|
2
src/K2
2
src/K2
|
@ -1 +1 @@
|
||||||
Subproject commit 50e02f88e9fdfe50d0bdf11445d9673fed106ed1
|
Subproject commit eab4ed7fb3e86b1de8b97d40af3a0155b4cee690
|
Loading…
Reference in a new issue