Reduced logging

This commit is contained in:
M66B 2022-08-15 09:53:34 +02:00
parent b81dda2b7f
commit 00e63483f3
1 changed files with 3 additions and 0 deletions

View File

@ -36,6 +36,7 @@ import androidx.preference.PreferenceManager;
import com.sun.mail.iap.ConnectionException;
import com.sun.mail.util.FolderClosedIOException;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.Inet4Address;
@ -724,6 +725,8 @@ public class ConnectionHelper {
continue;
}
if (status == HttpURLConnection.HTTP_NOT_FOUND)
throw new FileNotFoundException("Error " + status + ": " + urlConnection.getResponseMessage());
if (status != HttpURLConnection.HTTP_OK)
throw new IOException("Error " + status + ": " + urlConnection.getResponseMessage());