add handling of unknown error codes to submitting

This commit is contained in:
caneleex 2021-07-26 00:15:02 +02:00
parent c778f9b9a9
commit 62caf2e5f1
1 changed files with 3 additions and 0 deletions

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();