mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Flag server messages so AnkiDroid can handle them separately
This commit is contained in:
parent
1b192dca6b
commit
ba1f5f46c6
2 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue