Flag server messages so AnkiDroid can handle them separately

This commit is contained in:
Damien Elmes 2024-11-08 22:51:16 +10:00
parent 1b192dca6b
commit ba1f5f46c6
2 changed files with 2 additions and 0 deletions

View file

@ -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;

View file

@ -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,
}
}