mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-23 22:51:02 +00:00
Reduced logging
This commit is contained in:
parent
b81dda2b7f
commit
00e63483f3
1 changed files with 3 additions and 0 deletions
|
@ -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());
|
||||
|
||||
|
|
Loading…
Reference in a new issue