Skip to content

Commit f5b42db

Browse files
Update error messages
1 parent 196500f commit f5b42db

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/vs/platform/userDataSync/common/userDataSyncStoreService.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -394,15 +394,15 @@ export class UserDataSyncStoreClient extends Disposable implements IUserDataSync
394394
this._onTokenSucceed.fire();
395395

396396
if (context.res.statusCode === 409) {
397-
throw new UserDataSyncStoreError(`${options.type} request '${options.url?.toString()}' failed because of Conflict (409). There is new data exists for this resource. Make the request again with latest data.`, UserDataSyncErrorCode.Conflict, operationId);
397+
throw new UserDataSyncStoreError(`${options.type} request '${options.url?.toString()}' failed because of Conflict (409). There is new data for this resource. Make the request again with latest data.`, UserDataSyncErrorCode.Conflict, operationId);
398398
}
399399

400400
if (context.res.statusCode === 410) {
401401
throw new UserDataSyncStoreError(`${options.type} request '${options.url?.toString()}' failed because the requested resource is not longer available (410).`, UserDataSyncErrorCode.Gone, operationId);
402402
}
403403

404404
if (context.res.statusCode === 412) {
405-
throw new UserDataSyncStoreError(`${options.type} request '${options.url?.toString()}' failed because of Precondition Failed (412). There is new data exists for this resource. Make the request again with latest data.`, UserDataSyncErrorCode.PreconditionFailed, operationId);
405+
throw new UserDataSyncStoreError(`${options.type} request '${options.url?.toString()}' failed because of Precondition Failed (412). There is new data for this resource. Make the request again with latest data.`, UserDataSyncErrorCode.PreconditionFailed, operationId);
406406
}
407407

408408
if (context.res.statusCode === 413) {
@@ -482,7 +482,7 @@ export class RequestsSession {
482482

483483
if (this.requests.length >= this.limit) {
484484
this.logService.info('Too many requests', ...this.requests);
485-
throw new UserDataSyncStoreError(`Too many requests. Allowed only ${this.limit} requests in ${this.interval / (1000 * 60)} minutes.`, UserDataSyncErrorCode.LocalTooManyRequests, undefined);
485+
throw new UserDataSyncStoreError(`Too many requests. Only ${this.limit} requests allowed in ${this.interval / (1000 * 60)} minutes.`, UserDataSyncErrorCode.LocalTooManyRequests, undefined);
486486
}
487487

488488
this.startTime = this.startTime || new Date();

0 commit comments

Comments
 (0)