1
0
mirror of https://github.com/bitwarden/cli synced 2025-12-16 08:13:21 +00:00

Merge pull request #190 from fredrikekre/fe/sync

SyncCommand: Pass allowThrowOnError to fullSync
This commit is contained in:
Chad Scharf
2020-11-23 12:10:54 -05:00
committed by GitHub

View File

@@ -15,11 +15,11 @@ export class SyncCommand {
} }
try { try {
const result = await this.syncService.fullSync(cmd.force || false); const result = await this.syncService.fullSync(cmd.force || false, true);
const res = new MessageResponse('Syncing complete.', null); const res = new MessageResponse('Syncing complete.', null);
return Response.success(res); return Response.success(res);
} catch (e) { } catch (e) {
return Response.error(e); return Response.error('Syncing failed: ' + e.toString());
} }
} }