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:
parent
cb61cc7f41
commit
179a6e8a96
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue