mirror of
https://github.com/revanced/revanced-integrations.git
synced 2024-12-01 00:02:55 +01:00
add handling of unknown error codes to submitting
This commit is contained in:
parent
8980480236
commit
3a4c6e0955
@ -91,6 +91,9 @@ public class Requester {
|
|||||||
case 429:
|
case 429:
|
||||||
SponsorBlockUtils.messageToToast = str("submit_failed_rate_limit");
|
SponsorBlockUtils.messageToToast = str("submit_failed_rate_limit");
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
SponsorBlockUtils.messageToToast = str("submit_failed_unknown_error", responseCode, connection.getResponseMessage());
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
new Handler(Looper.getMainLooper()).post(toastRunnable);
|
new Handler(Looper.getMainLooper()).post(toastRunnable);
|
||||||
connection.disconnect();
|
connection.disconnect();
|
||||||
|
Loading…
Reference in New Issue
Block a user