329
} catch (e) {
330
if (e instanceof UserDataSyncError) {
332
>
333
>
case UserDataSyncErrorCode.LocalPreconditionFailed:
334
// Rejected as there is a new local version. Syncing again...
335
this.logService.info(`${this.syncResourceLogLabel}: Failed to synchronize ${this.syncResourceLogLabel} as there is a new local version available. Synchronizing again...`);
336
return this.performSync(remoteUserData, lastSyncUserData, strategy, userDataSyncConfiguration);
338
>
case UserDataSyncErrorCode.Conflict:
339
>
case UserDataSyncErrorCode.PreconditionFailed:
340
// Rejected as there is a new remote version. Syncing again...
341
this.logService.info(`${this.syncResourceLogLabel}: Failed to synchronize as there is a new remote version available. Synchronizing again...`);