mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
suggest DB check if HTTP status 400 is returned
This commit is contained in:
parent
a03da5ce89
commit
9299dc60f4
1 changed files with 4 additions and 0 deletions
|
@ -325,6 +325,10 @@ fn error_for_status_code(info: String, code: StatusCode) -> AnkiError {
|
||||||
kind: SyncErrorKind::ServerError,
|
kind: SyncErrorKind::ServerError,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
S::BAD_REQUEST => AnkiError::SyncError {
|
||||||
|
info,
|
||||||
|
kind: SyncErrorKind::DatabaseCheckRequired,
|
||||||
|
},
|
||||||
_ => AnkiError::NetworkError {
|
_ => AnkiError::NetworkError {
|
||||||
info,
|
info,
|
||||||
kind: NetworkErrorKind::Other,
|
kind: NetworkErrorKind::Other,
|
||||||
|
|
Loading…
Reference in a new issue