Skip to content

Commit

Permalink
Flag server messages so AnkiDroid can handle them separately
Browse files Browse the repository at this point in the history
  • Loading branch information
dae committed Nov 8, 2024
1 parent 1b192dc commit ba1f5f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions proto/anki/backend.proto
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ message BackendError {
DB_ERROR = 5;
NETWORK_ERROR = 6;
SYNC_AUTH_ERROR = 7;
SYNC_SERVER_MESSAGE = 23;
SYNC_OTHER_ERROR = 8;
JSON_ERROR = 9;
PROTO_ERROR = 10;
Expand Down
1 change: 1 addition & 0 deletions rslib/src/backend/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ impl From<SyncErrorKind> for Kind {
fn from(err: SyncErrorKind) -> Self {
match err {
SyncErrorKind::AuthFailed => Kind::SyncAuthError,
SyncErrorKind::ServerMessage => Kind::SyncServerMessage,
_ => Kind::SyncOtherError,
}
}
Expand Down

0 comments on commit ba1f5f4

Please sign in to comment.