Skip to content
This repository has been archived by the owner on May 25, 2022. It is now read-only.

SyncCommand: Pass allowThrowOnError to fullSync #190

Merged
merged 1 commit into from
Nov 23, 2020

Conversation

fredrikekre
Copy link
Contributor

@fredrikekre fredrikekre commented Nov 20, 2020

This intends to make explicit calls to bw sync
throw if the syncing can not be performed,
fixes #129.

See also bitwarden/jslib#207 (although the patches are independent of each other).

This intends to make explicit calls to bw sync
throw if the syncing can not be performed,
fixes bitwarden#129.
@fredrikekre
Copy link
Contributor Author

Example output:

$ bw sync -f
Syncing failed: FetchError: request to http://localhost:8000/api/sync?excludeDomains=true failed, reason: connect ECONNREFUSED 127.0.0.1:8000

instead of as before

$ bw sync
Syncing complete.

Copy link
Contributor

@cscharf cscharf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@cscharf cscharf merged commit 8c99762 into bitwarden:master Nov 23, 2020
@fredrikekre fredrikekre deleted the fe/sync branch November 23, 2020 17:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bw sync reports as successful even when server is unreachable
2 participants