diff --git a/src/java/davmail/exchange/ExchangeSessionFactory.java b/src/java/davmail/exchange/ExchangeSessionFactory.java index df9f9a44..c7f04835 100644 --- a/src/java/davmail/exchange/ExchangeSessionFactory.java +++ b/src/java/davmail/exchange/ExchangeSessionFactory.java @@ -26,7 +26,6 @@ import davmail.exception.WebdavNotAvailableException; import davmail.exchange.dav.DavExchangeSession; import davmail.exchange.ews.EwsExchangeSession; import davmail.http.DavGatewayHttpClientFacade; -import davmail.ui.tray.DavGatewayTray; import org.apache.commons.httpclient.HttpClient; import org.apache.commons.httpclient.HttpStatus; import org.apache.commons.httpclient.methods.GetMethod; @@ -150,7 +149,7 @@ public final class ExchangeSessionFactory { ExchangeSession.LOGGER.debug(e.getMessage() + ", retry with EWS"); session = new EwsExchangeSession(poolKey.url, poolKey.userName, poolKey.password); } else { - DavGatewayTray.warn(new BundleMessage("LOG_WEBDAV_NOT_AVAILABLE")); + throw e; } } }