add handling of unknown error codes to submitting

This commit is contained in:
caneleex 2021-07-26 00:15:02 +02:00
parent 8980480236
commit 3a4c6e0955

View File

@ -91,6 +91,9 @@ public class Requester {
case 429:
SponsorBlockUtils.messageToToast = str("submit_failed_rate_limit");
break;
default:
SponsorBlockUtils.messageToToast = str("submit_failed_unknown_error", responseCode, connection.getResponseMessage());
break;
}
new Handler(Looper.getMainLooper()).post(toastRunnable);
connection.disconnect();