mirror of
https://github.com/ankitects/anki.git
synced 2025-12-31 07:43:02 -05:00
suggest DB check if HTTP status 400 is returned
This commit is contained in:
parent
6d7734c13b
commit
d63bc24c0d
1 changed files with 4 additions and 0 deletions
|
|
@ -256,6 +256,10 @@ fn error_for_status_code(info: String, code: StatusCode) -> AnkiError {
|
|||
kind: SyncErrorKind::ServerError,
|
||||
}
|
||||
}
|
||||
S::BAD_REQUEST => AnkiError::SyncError {
|
||||
info,
|
||||
kind: SyncErrorKind::DatabaseCheckRequired,
|
||||
},
|
||||
_ => AnkiError::NetworkError {
|
||||
info,
|
||||
kind: NetworkErrorKind::Other,
|
||||
|
|
|
|||
Loading…
Reference in a new issue