add error code for 429: rate limit

This commit is contained in:
ryanzhao 2021-07-14 10:59:14 +10:00
parent 51432a4655
commit ff49363d53
1 changed files with 1 additions and 1 deletions

View File

@ -334,7 +334,7 @@ class Storage(context: Context, helper: SQLCipherOpenHelper) : Database(context,
if (error.localizedMessage != null) {
val message: String
if (error is OnionRequestAPI.HTTPRequestFailedAtDestinationException && error.statusCode == 429) {
message = "Rate limited."
message = "429: Rate limited."
} else {
message = error.localizedMessage!!
}