Skip to content

Commit 5506e5e

Browse files
authored
add logging (microsoft#159086)
1 parent c7be140 commit 5506e5e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,9 @@ export abstract class AbstractSynchroniser extends Disposable implements IUserDa
622622
}
623623

624624
} catch (error) {
625-
if (!(error instanceof FileOperationError && error.fileOperationResult === FileOperationResult.FILE_NOT_FOUND)) {
625+
if (error instanceof FileOperationError && error.fileOperationResult === FileOperationResult.FILE_NOT_FOUND) {
626+
this.logService.info(`${this.syncResourceLogLabel}: Not synced yet. Last sync resource does not exist.`);
627+
} else {
626628
// log error always except when file does not exist
627629
this.logService.error(error);
628630
}

0 commit comments

Comments
 (0)