SyncCommand: Pass allowThrowOnError to fullSync

This intends to make explicit calls to bw sync
throw if the syncing can not be performed,
fixes https://github.com/bitwarden/cli/issues/129.
This commit is contained in:
Fredrik Ekre 2020-11-20 16:17:09 +01:00
parent cb61cc7f41
commit 179a6e8a96
1 changed files with 2 additions and 2 deletions

View File

@ -15,11 +15,11 @@ export class SyncCommand {
}
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);
return Response.success(res);
} catch (e) {
return Response.error(e);
return Response.error('Syncing failed: ' + e.toString());
}
}