From 5dba7b1cd49af206779182810e847afa1a2171cc Mon Sep 17 00:00:00 2001 From: mguessan Date: Mon, 26 Jul 2010 21:11:12 +0000 Subject: [PATCH] Caldav: improve HttpNotFound message git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1289 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/java/davmail/exchange/dav/DavExchangeSession.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/java/davmail/exchange/dav/DavExchangeSession.java b/src/java/davmail/exchange/dav/DavExchangeSession.java index ebdf7e62..e0fde284 100644 --- a/src/java/davmail/exchange/dav/DavExchangeSession.java +++ b/src/java/davmail/exchange/dav/DavExchangeSession.java @@ -1216,14 +1216,14 @@ public class DavExchangeSession extends ExchangeSession { try { responses = DavGatewayHttpClientFacade.executePropFindMethod(httpClient, URIUtil.encodePath(itemPath), 0, EVENT_REQUEST_PROPERTIES_NAME_SET); if (responses.length == 0) { - throw new HttpNotFoundException(itemPath); + throw new HttpNotFoundException(itemPath+" not found"); } } catch (HttpNotFoundException e) { LOGGER.debug(itemPath +" not found, searching by urlcompname"); // failover: try to get event by displayname responses = searchItems(folderPath, EVENT_REQUEST_PROPERTIES, equals("urlcompname", emlItemName), FolderQueryTraversal.Shallow); if (responses.length == 0) { - throw new HttpNotFoundException(itemPath); + throw new HttpNotFoundException(itemPath+" not found"); } } // build item @@ -1234,7 +1234,7 @@ public class DavExchangeSession extends ExchangeSession { List contacts = searchContacts(folderPath, CONTACT_ATTRIBUTES, equals("urlcompname", urlcompname)); if (contacts.isEmpty()) { LOGGER.warn("Item found, but unable to build contact"); - throw new HttpNotFoundException(itemPath); + throw new HttpNotFoundException(itemPath+" not found"); } return contacts.get(0); } else if ("urn:content-classes:appointment".equals(contentClass)